CImeCUICandWindow::CReadingsArea::CButton::PaintText (Windows CE 5.0)
This method draws the text of the button.
static void PaintText( HDC hDC, LPRECT lprc, const WCHAR* pchText, INT cchText, DWORD dwTextFlag, 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 text. - pchText
[in] Pointer to the string to draw. If the cchText parameter is negative one (–1), the string is null-terminated. - cchText
[in] Integer that specifies the number of characters in the string. If cchText is negative one (–1), the lpString parameter is assumed to be a pointer to a null-terminated string. - dwTextFlag
[in] Unsigned integer that specifies the text formatting method that will be passed to the DrawText function as the uFormat parameter. - 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 draws the text part of the button.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Imjpskin.h.
See Also
CImeCUICandWindow | RECT | DrawText
Send Feedback on this topic to the authors