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