Partager via


ButtonView_t::DrawPushable (Windows Embedded CE 6.0)

1/6/2010

This method draws a push button in a given state. Depending on the state of the button, the button either appears pressed or unpressed.

Syntax

static void DrawPushable(
  HDC hdc,
  HBRUSH hbr,
  RECT* lprc,
  UINT state,
  UINT flags
);

Parameters

  • hdc
    [in] Handle to a device context.
  • hbr
    [in] Handle to a brush.
  • lprc
    [in] Pointer to a RECT structure that specifies the drawing area for the 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.

  • flags
    [in] Unsigned integer that specifies flags that an OEM can define. The default implementation of ButtonView_t::DrawPushable does not use this value.

Remarks

The ButtonView_t::DrawPushStyle and NonClientView_t::DrawFrameControl methods call ButtonView_t::DrawPushable.

Requirements

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

See Also

Reference

ButtonView_t
ButtonView_t::DrawPushStyle
NonClientView_t::DrawFrameControl
RECT