13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 6.1: Button styles (continued)BS_DEFPUSHBUTTONBS_GROUPBOXDesignates a button with a bold border. Thisbutton represents the default user response. Anytext is displayed within the button. Windowssends a message to the parent window when theuser clicks the button.Designates a rectangle into which other buttonsare grouped. Any text is displayed in therectangle's upper-left corner.Causes text to appear on the left side of the radiobutton or check-box button. Use this style with theBS_CHECKBOX, BS_RADIOBUTTON, orBS_3STATE styles.Designates an owner-draw button. The parentwindow is notified when the button is clicked.Notification includes a request to paint, invert, anddisable the button.Designates a button that contains the given text.The control sends a message to its parent windowwhenever the user clicks the button.Designates a small circular button that can bechecked; its border is bold when the user clicks thebutton. Any text appears to the right of the button.Typically, two or more radio buttons are groupedtogether to represent mutually exclusive choices,so no more than one button in the group ischecked at any time.Identical to BS_CHECKBOX, except that the boxcan be grayed as well as checked. The grayed statetypically is used to show that a check box has beendisabled.BN_CLlCKEDThis code specifies that the user has clicked a button. The parent windowreceives the code through a WM_ COMMAND message from a buttoncontrol.Parameters wParam Specifies the control ID.CommentsIParamContains a handle that identifies the button control in its loworderword and the BN_ CLICKED notification code in itshigh-order word.Disabled buttons will not send a BN_ CLICKED notification message to aparent window.Chapter 6, Messages directory 605

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!