Partager via


ButtonView_t::DrawPushable

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

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Buttonview.hpp.

See Also

ButtonView_t::DrawPushStyle | NonClientView_t::DrawFrameControl | RECT

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.