Full Screen Processing for wince5.0 and mobile5.0

Source: Internet
Author: User
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:

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.