Some PPC controls are not displayed.

Source: Internet
Author: User
Use MFC in vs05 to develop the PPC (WIN ce.net) project. The following problems are found during control layout.
Normally displayed controls in IDE:

The result is as follows in the simulator:

The static text "remote IP" is not displayed, and the control in groupbox is not displayed.

After several repeated tests, we found thatCodeRelated:

# If defined (_ device_resolution_aware )&&! Defined (win32_platform_wfsp)
Void cclientdlg: onsize (uint/* ntype */, INT/* CX */, INT/* Cy */)
{
Dra: relayoutdialog (
AfxGetInstanceHandle (),
This-> m_hwnd,
Dra: getdisplaymode ()! = DRA: portrait?
Makeintresource (idd_client_dialog_wide ):
Makeintresource (idd_client_dialog ));
}
# Endif

The effect after the comment is as follows:

The static text "remote IP" is displayed normally, but all controls in groupbox are not displayed. After testing, it is found that groupbox is an opaque control due to the order of the tab key, therefore, you must set the tab order of groupbox to the final to ensure that all controls in groupbox are displayed. The final result is normal.
:

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.