I want to create an SDI app with no border, title bar, min/max or system menu. I tried to do this in the PreCreateWindow() of my class derived from CFrameWnd but my negating the WS_SYSMENU, WS_CAPTION, WS_BORDER, and WS_THICKFRAME just get ignored. On advice from another user I did the following in InitInstance() of CMyApp:
m_pMainWnd->ModifyStyle(WS_CAPTION | WS_THICKFRAME | WS_BORDER, WS_CLIPCHILDREN );
m_pMainWnd->SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE |
SWP_NOZORDER | SWP_DRAWFRAME);
For reasons I don't understand, the WS_BORDER in the above code makes the difference between a title bar showing up or not. But with the WS_BORDER, I of course get a border around my app.
So, my question is this: how can I create an SDI app without a border, min/max, system menu and title bar?