Condividi tramite


Styles Used by MFC

Use the following styles when you create the corresponding MFC object. In most cases, these styles are set in the dwStyle parameter of the class Create function.

MFC Styles

Style

Description

Button styles

Applies to CButton Class objects, such as radio buttons, check boxes and pushbuttons. Specify a combination of styles in the dwStyle parameter of CButton::Create.

Combo-box styles

Applies to CComboBox Class objects. Specify a combination of styles in the dwStyle parameter of CComboBox::Create.

Edit styles

Applies to CEdit Class objects. Specify a combination of styles in the dwStyle parameter of CEdit::Create.

Frame-window styles

Applies to CFrameWnd Class objects. Specify a combination of styles in the dwStyle parameter of CFrameWnd::Create.

List-box styles

Applies to CListBox Class objects. Specify a combination of styles in the dwStyle parameter of CListBox::Create.

Message-box styles

Applies to AfxMessageBox items. Specify a combination of styles in the nType parameter of AfxMessageBox.

Scroll-bar styles

Applies to CScrollBar Class objects. Specify a combination of styles in the dwStyle parameter of CScrollBar::Create.

Static styles

Applies to CStatic Class objects. Specify a combination of styles in the dwStyle parameter of CStatic::Create.

Window styles

Applies to CWnd Class objects. Specify a combination of styles in the dwStyle parameter of CWnd::Create or CWnd::CreateEx.

Extended window styles

Applies to CWnd Class objects. Specify a combination of styles in the dwExStyle parameter of CWnd::CreateEx.

See Also

Concepts

Class Library Overview