• Advertisement

Archived

This topic is now archived and is closed to further replies.

Changing my window style

This topic is 5061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m creating a SDI application with the view derived from CFormview, and I want to change the window style so that it''ll have a full screen view on it. I''d changed the window style into WS_POPUP|WS_VISIBLE|WS_MAXIMIZE on the PreCreateWindow method of the CMainFrame but the result is my app always hiding. It works for a SDI app with a base CView.. Does anyone know how to make/change my window style in a SDI app (especially using formview since in simple SDI it works)??

Share this post


Link to post
Share on other sites
Advertisement
If you want your mainframe maximized on initialization, go into your app cpp file. Find the line that says

m_pMainWnd->ShowWindow(SW_SHOW);

and replace it with

m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);

Don't bother with the style change.

-fel

[edited by - felisandria on April 10, 2004 11:12:01 PM]

Share this post


Link to post
Share on other sites

  • Advertisement