Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start program in fullscreen?

Status
Not open for further replies.

soxo

Programmer
Feb 10, 2005
1
SE
Well i'm just woundering what to write to start a program in fullscreen. :)
 
If you aren't using MFC and want it to start maximized, do what xwb said. If you are using MFC with SDI or MDI and want it to start maximized, override CMainFrame's ActivateFrame and change

CFrameWnd::ActivateFrame(nCmdShow);

to

CFrameWnd::ActivateFrame(SW_MAXIMIZE);

If you want it to actually be full screen like a game, that's more difficult, say so and I'll help you with that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top