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 ).