First, Hide System columns and display images in full screen
Setforegroundwindow ();
// Hide the taskbar
M_pwndtaskbar = findwindow (_ T ("hhtaskbar"), null );
If (m_pwndtaskbar)
{
M_pwndtaskbar-> showwindow (sw_hide );
}
// Hide the input field
M_pwndsip = findwindow (_ T ("menu_worker"), null );
If (m_pwndsip)
{
M_pwndsip-> showwindow (sw_hide );
}
Hwnd hwndmenubar =: findwindow (_ T ("ms_sipbutton"), _ T ("ms_sipbutton "));
Hwnd hwndmenubar2 =: getwindow (hwndmenubar, gw_child );
: Showwindow (hwndmenubar2, sw_hide );
Crect RC;
Setrect (RC, 0, 0, getsystemmetrics (sm_cxscreen), getsystemmetrics (sm_cyscreen ));
Movewindow (RC );
Then, restore the work area to create a program control.
Crect RC;
Systemparametersinfo (spi_getworkarea, 0, & rc, false );
(Cmainframe *) m_pmainwnd)-> movewindow (RC. Left, RC. Top, RC. right-rc.left, RC. bottom-rc.top, true );
Finally, after the creation of controls and other work is complete, display the system column (taskbar, menu bar, etc.), switch to the program.
Setforegroundwindow ();
If (m_pwndsip)
{
M_pwndsip-> showwindow (sw_show );
}
If (m_pwndtaskbar)
{
M_pwndtaskbar-> showwindow (sw_show );
}
Hwnd hwndmenubar =: findwindow (_ T ("ms_sipbutton"), _ T ("ms_sipbutton "));
Hwnd hwndmenubar2 =: getwindow (hwndmenubar, gw_child );
: Showwindow (hwndmenubar2, sw_show );//