


Use the grayed state to show that the state of the check box is not determined.Ĭreates a button that is the same as a three-state check box, except that the box changes its state when the user selects it. Constants ConstantĬreates a button that is the same as a check box, except that the box can be grayed as well as checked or cleared.

ZeroMemory(&create, sizeof(CREATESTRUCT)) Įxample from Windows Classic Samples on GitHub. Example HRESULT Button::CreateText(HWND hParent, const TCHAR *szCaption, int nID, If you create a button using the BUTTON class with the CreateWindow or CreateWindowEx function, you can specify any of the button styles listed below. Specifies a combination of button styles.
