MFC: Context Help (? Button) to Title Bar of MDIframe

  • Thread starter Thread starter M khalid khan
  • Start date Start date
M

M khalid khan

Guest
In MFC how can we add (?)context help button in title bar of childframe. I tried to add window style on precreatewindow but it does not display help button in title bar. I know how to add contexthelp on dialogs and propertysheet but I am unable to add for child frame window

BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~WS_MAXIMIZEBOX;
cs.style &= ~WS_MINIMIZEBOX;
cs.style |= WS_SYSMENU;
cs.style |= WS_EX_CONTEXTHELP;
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;

return TRUE;
}


Continue reading...
 
Back
Top