Full screen in MFC

How do I make a Visual C++ looking full screen with the least hassle?
jhuntAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
zoushenConnect With a Mentor Commented:
hello!

  You can customize VC user interface to avoid hassle.

for example ,you can add/remove some shortcuts to customize your tool bars.

Good luck !

0
 
WynCommented:
???
???
0
 
pcj0961Commented:
I am assuming that you want to control the attributes of the main frame window in a MFC application. the easiest way to do that is to overide the
FrameWnd::PreCreateWindow with your own and set the style and size
using the cs structure.

      cs.style = WS_OVERLAPPED | WS_CAPTION & ~FWS_ADDTOTITLE
            | FWS_PREFIXTITLE | WS_THICKFRAME | WS_SYSMENU
            | WS_MAXIMIZE & ~WS_VISIBLE;

    // Size the window to full screen size
    cs.cy = ::GetSystemMetrics( SM_CYSCREEN );
    cs.cx = ::GetSystemMetrics( SM_CXSCREEN );
    cs.y = 0;
    cs.x = 0;

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.