Wince5.0 and mobile5.0 have different full screen processing methods in evc4.0 and vs2005 C ++ development.
Processing in evc4.0:( Wince5.0 and mobile5.0 have the same processing method)
After the program starts, call: 1 hwnd htb =: findwindow (L "hhtaskbar", null );
2: showwindow (htb, sw_hide );
Supports full screen.
Of course, you need to retrieve the taskbar before exiting the program: 1 hwnd htb =: findwindow (L "hhtaskbar", null );
2: showwindow (htb, sw_show );
Processing on vs2005:(Wince5.0 and mobile5.0 have different processing methods)
On wince5.0, the processing method can be similar to the evc4.0 method above;
On mobile5.0, the above method is invalid and needs to be called as follows: 1 setforegroundwindow (); // if this function is not called, shfullscreen will be invalid
2
Shfullscreen (m_hwnd, shfs_hidestarticon/** // shfs_hidetaskbar | shfs_hidestarticon | shfs_hidesipbutton */);
3
4 rect RC;
5 setrect (& rc, 0, 0, getsystemmetrics (sm_cxscreen), getsystemmetrics (sm_cyscreen ));
6: movewindow (m_hwnd, RC. Left, RC. Top, RC. right-rc.left, RC. bottom-rc.top, true );
7
8 This-> m_bfullscreen = false; // if you do not execute this sentence, the effect will be different.
If you do not execute row 8th in the Code, the following results will be returned: