CMFCPropertySheet::SetLook

Specifies the appearance of the property sheet.

void SetLook(
   PropSheetLook look,
   int nNavControlWidth=100 
);

Parameters

  • [in] look
    One of the enumeration values that specifies the appearance of the property sheet. The default style for a property sheet is CMFCPropertySheet::PropSheetLook_Tabs. For more information, see the table in the Remarks section of this topic.

  • [in] nNavControlWidth
    The width of the navigation control, in pixels. The default value is 100.

Remarks

To display a property sheet in a style other than the default, call this method before you create the property sheet window.

The following table lists the enumeration values that can be specified in the look parameter.

Value

Description

CMFCPropertySheet::PropSheetLook_Tabs

(Default) Displays a tab for each property page. Tabs are displayed at the top of the property sheet and are stacked if there are more tabs than will fit in a single row.

CMFCPropertySheet::PropSheetLook_OutlookBar

Displays a list of navigation buttons, in the style of the Microsoft Outlook bar, at the left side of the property sheet. Each button in the list corresponds to a property page. The framework displays scroll arrows if there are more buttons than will fit in the visible area of the list.

CMFCPropertySheet::PropSheetLook_Tree

Displays a tree control at the left side of the property sheet. Each parent or child node of the tree control corresponds to a property page. The framework displays scroll arrows if there are more nodes than will fit in the visible area of the tree control.

CMFCPropertySheet::PropSheetLook_OneNoteTabs

Displays a tab, in the style of Microsoft OneNote, for each property page. The framework displays tabs at the top of the property sheet and scroll arrows if there are more tabs than will fit in a single row.

CMFCPropertySheet::PropSheetLook_List

Displays a list at the left side of the property sheet. Each list item corresponds to a property page. The framework displays scroll arrows if there are more list items than will fit in the visible area of the list.

Requirements

Header: afxpropertysheet.h

See Also

Reference

CMFCPropertySheet Class

Hierarchy Chart

CMFCPropertyPage Class

CMFCPropertySheet::GetLook