Styles Used by MFC

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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

StyleDescription
Button stylesApplies 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 stylesApplies to CComboBox Class objects. Specify a combination of styles in the dwStyle parameter of CComboBox::Create.
Edit stylesApplies to CEdit Class objects. Specify a combination of styles in the dwStyle parameter of CEdit::Create.
Frame-window stylesApplies to CFrameWnd Class objects. Specify a combination of styles in the dwStyle parameter of CFrameWnd::Create.
List-box stylesApplies to CListBox Class objects. Specify a combination of styles in the dwStyle parameter of CListBox::Create.
Message-box stylesApplies to AfxMessageBox items. Specify a combination of styles in the nType parameter of AfxMessageBox.
Scroll-bar stylesApplies to CScrollBar Class objects. Specify a combination of styles in the dwStyle parameter of CScrollBar::Create.
Static stylesApplies to CStatic Class objects. Specify a combination of styles in the dwStyle parameter of CStatic::Create.
Window stylesApplies to CWnd Class objects. Specify a combination of styles in the dwStyle parameter of CWnd::Create or CWnd::CreateEx.
Extended window stylesApplies to CWnd Class objects. Specify a combination of styles in the dwExStyle parameter of CWnd::CreateEx.

Class Overview

Show: