Share via


CImeCUIToolBar::Button::PaintIcon (Windows CE 5.0)

Send Feedback

This method draws the icon of a button.

static void PaintIcon(  HDC hDC,  LPRECT lprc,  HICON hIcon,  DWORD dwState);

Parameters

  • hDC
    [in] Handle to the device context for the window.
  • lprc
    [in] Pointer to a RECT structure that specifies the coordinates of the bounding rectangle for the icon.
  • hIcon
    [in] Handle to the icon to draw.
  • dwState
    [in] Unsigned, 32-bit integer that indicates the state of the button. The following table shows the possible values.
    Value Description
    CUIBUTTONSTATE_NORMAL Normal button state.
    CUIBUTTONSTATE_MOUSEOVER Mouse over button state.
    CUIBUTTONSTATE_PUSHED Pushed button state.
    CUIBUTTONSTATE_INACTIVE Inactive button state.
    CUIBUTTONSTATE_SELECTED Selected button state. This state can be combined with another state.

Return Values

None.

Remarks

This method is called to draw the face of the toolbar button, except for the KANA and CAPS buttons because the faces of these buttons is an icon with a size of 16x16 pixels.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Imjpskin.h.

See Also

CImeCUIToolBar | RECT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.