VC ++ full screen

Source: Internet
Author: User

Win32 full screen code:

1. Remove menu

= = CS_HREDRAW |== = ==== (HBRUSH)(COLOR_WINDOW+= NULL;    wcex.lpszClassName    == RegisterClassEx(&

2. Change the properties of window bar and width and height

BOOL InitInstance(HINSTANCE hInstance, = hInstance; = CreateWindow(szWindowClass, szTitle, WS_POPUP, ::GetSystemMetrics(SM_CXSCREEN), ::GetSystemMetrics(SM_CYSCREEN) (!

Run the command (alt + f4 exit ).

 

Full Screen code of the mfc sdi type:

1. Change the window style in MainFrame and remove the display of the window bar.

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT&( !    cs.style=WS_POPUPWINDOW;      

2. The modification window in App. cpp code is displayed to maximize

m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);

3. Comment out all Code related to menu, toolbar, and statusbar in CMainFrame: OnCreate, as follows:

 (CFrameWndEx::OnCreate(lpCreateStruct) == - -                                 (CMFCToolBar::GetUserImages() ==         (m_UserImages.Load(_T(&    CList<UINT, UINT> 

4. Remove the shortcut menu event association from the corresponding View

Okay. (alt + f4 quit ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.