Partager via


CImeCUICandWindow::CNumButton::PaintIcon (Windows Embedded CE 6.0)

1/6/2010

This method draws the icon of a button.

Syntax

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

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 specifies 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.

  • dwFlags
    [in] Set to zero (0). This parameter is reserved for future use.

Return Value

None.

Requirements

Header imjpskin.h
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

CImeCUICandWindow

Other Resources

RECT