Click to See Complete Forum and Search --> : Urgent!!! full-screen window


Hardeep Singh
April 23rd, 1999, 08:34 AM
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

Gomez Addams
April 25th, 1999, 12:16 PM
Have a look at Q164162. I used those techniques and they worked for me.

April 25th, 1999, 01:53 PM
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/ASIN/0201185377/ref%3Dsim%5Fbooks/002-2078480-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/

Jose Romero
April 28th, 1999, 11:03 PM
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.

Hardeep Singh
April 29th, 1999, 05:20 AM
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?