ButtonView_t::DrawPushStyle
This method draws the style of a push button.
static void DrawPushStyle(
HWND hwnd,
HDC hdc,
HBRUSH hbr,
UINT pbfPush,
UINT state
);
Parameters
- hwnd
[in] Handle to a window. - hdc
[in] Handle to a device context. - hbr
[in] Handle to a brush. - pbfPush
[in] Unsigned integer that describes whether a button can be pressed. The following table shows the possible values.Value Description PBF_DEFAULT Default push button PBF_PUSHABLE Push button - state
[in] Unsigned integer that specifies the current state of the button. The following table shows the possible values.Value Description DFCS_CHECKED Button is checked. DFCS_FLAT Button has a flat border. DFCS_INACTIVE Button is grayed. DFCS_MONO Button has a monochrome border. DFCS_PUSHED Button appears pressed.
Remarks
ButtonView_t::DrawPushStyle is called when the button is repainted, when the state of the button changes, or when the button receives a BM_SETCHECK message.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Buttonview.hpp.
See Also
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.