Udostępnij za pośrednictwem


Adding Controls to a Property Sheet

By default, a property sheet allocates window area for the property pages, the tab index, and the OK, Cancel, and Apply buttons. (A modeless property sheet does not have the OK, Cancel, and Apply buttons.) You can add other controls to the property sheet. For example, you can add a preview window to the right of the property page area to show the user what the current settings would look like if applied to an external object.

You can add controls to the property sheet dialog in the OnCreate handler. Accommodating additional controls usually requires expanding the size of the property sheet dialog. After calling the base class CPropertySheet::OnCreate, call GetWindowRect to get the width and height of the currently allocated property sheet window, expand the rectangle's dimensions, and call MoveWindow to change the size of the property sheet window.

See Also

Reference

CPropertyPage Class

CPropertySheet Class

Concepts

Property Sheets (MFC)