PRB: Property Sheets Do Not Size Properly

ID: Q231753


The information in this article applies to:
  • Microsoft Windows CE Operating System, versions 2.0, 2.11


SYMPTOMS

Windows CE applications that use property sheets may experience problems where the property sheet dialog box may be either too large or too small to display the property pages as desired.


CAUSE

When a property sheet is created, Windows determines the size of the property sheet dialog box based on the size of the largest property page. Windows CE assumes that the property pages are in the same dialog box units and the same font when it calculates the size of the property pages.


RESOLUTION

Following are two possible solutions:

  • Do not specify a default font in the property page dialog box template. This action causes the dialog box to be created with the default system font. The dialog box editor in Microsoft Visual C++ sets the dialog box font to MS Sans Serif, 8 pt. This setting can be removed by manually editing the Resource Script (.RC) file and removing the FONT statement from the dialog box template.


  • Another solution is to use large dialog box templates with extra space, and move/resize the controls as needed.



STATUS

This behavior is by design.

Additional query words:

Keywords : kbCtrl kbPropSheet kbGrpUser kbWinCE200 kbWinCE210 kbDSupport
Version : n/a:2.0,2.11
Platform : n/a
Issue type : kbprb


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.