다음을 통해 공유


Push Button Styles (Windows CE 5.0)

Send Feedback

The following table shows the styles that are supported by Windows CE.

Push button style Description
BS_BOTTOM Places the text at the bottom of the button rectangle.
BS_CENTER Centers the text horizontally in the button rectangle.
BS_DEFPUSHBUTTON Creates a push button with a heavy black border. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely option, or default.
BS_LEFT Left-aligns the text in the button rectangle.
BS_NOTIFY Enables a button to send BN_KILLFOCUS and BN_SETFOCUS notification messages to its parent window. Note that the button sends the BN_CLICKED notification message regardless of whether it has this style.
BS_OWNERDRAW Creates an owner-drawn button. The owner window receives a WM_MEASUREITEM message when the button is created and a WM_DRAWITEM message when a visual aspect of the button has changed.
BS_PUSHBUTTON Creates a push button that posts a WM_COMMAND message to the owner window when the user clicks the button.
BS_RIGHT Right-aligns text in the button rectangle.
BS_TOP Places text at the top of the button rectangle.
BS_VCENTER Vertically centers text in the button rectangle.
WS_TABSTOP Turns the control into a tab stop, which enables the user to select the control by tabbing through the controls in a dialog box.

See Also

Control Styles | Window and Message Box Styles

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.