Share via


ButtonView_t::DrawPushStyle

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method draws the style of a push button.

Syntax

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

Header buttonview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

BM_SETCHECK