Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

Community Additions

ADD
Show:
© 2015 Microsoft