
Make SDI Apps Caption Less
Quote:
>Anyone can tell me how to hide title bar for an SDI
>application? Thanks much.
Larry,
Try this code in InitInstance:
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
/* Remove the menu */
m_pMainWnd->SetMenu( NULL );
/* And the caption bar */
m_pMainWnd->ModifyStyle( WS_CAPTION, 0,
SWP_DRAWFRAME | SWP_NOZORDER );
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
Quote:
}
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.