Can a window class derived from CFrameWnd be shown as a full-screen window? If yes, what window styles should I apply? If not, can I have something like a toolbar in a full-screen window? Please let me know.
Thanks,
Hardeep
Printable View
Can a window class derived from CFrameWnd be shown as a full-screen window? If yes, what window styles should I apply? If not, can I have something like a toolbar in a full-screen window? Please let me know.
Thanks,
Hardeep
Have a look at Q164162. I used those techniques and they worked for me.
You should consider buying "The MFC Answer Book" by Eugène Kain. It has tons of cool code for inhancing the UI of you application, and covers everything from document management to implimenting a user customizable UI. It even has the answer to this question, but since it takes up about 9 pages in the book I can't really post it here. You can get it from http://www.amazon.com/exec/obidos/AS...078480-3664658 for about $35, and it's well worth it, or you can check out some of the sample FAQs at http://www.mfcfaq.com/
Hey, don't worry help is on the way.
In the App class, find the InitInstance() function and go all the way down to the end. Just before the return statement. Include/add the
following code:
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
Good luck,
Jose.
Hey, thanks! but there's one more thing. The taskbar gets hidden initially, but whenever the focu shifts to another window (which I open from my own app), it comes back. Can you tell me how to either keep it visible all the time, or hide it completely as long as my app is running?