MenuView_t::DrawString (Windows Embedded CE 6.0)
1/6/2010
This method draws the string of a menu item.
Syntax
static void DrawString(
HDC hdc,
WCHAR* pszItemString,
int cchItemString,
BOOL bPopup,
UINT menustate,
UINT uDrawAction,
BOOL bBigFillRect,
long x,
long y,
long cx,
long cy,
long cxMenu,
long ichAccel,
long xAccel,
WCHAR chMnemo,
long cxArrow
);
Parameters
- hdc
[in] Handle to the device context for the menu.
- pszItemString
[in] Pointer to a buffer containing the string of the menu item.
- cchItemString
[in] Number of characters in the pszItemString buffer.
- bPopup
[in] Boolean that specifies whether the menu is a popup menu. TRUE indicates the menu is a popup. FALSE indicates the menu is not a popup.
- menustate
[in] Constants to designate the appearance of the menu item. For more information, see Menus Constants.
- uDrawAction
[in] Unsigned integer that specifies the drawing action required. The default implementation of MenuView_t::DrawString does not use this value.
- bBigFillRect
[in] Boolean that specifies whether entire menu background has already been erased. TRUE indicates that background has been erased. FALSE indicates that background has not been erased. The default implementation of MenuView_t::DrawString does not use this value.
- x
[in] The x coordinate of the menu item.
- y
[in] The y coordinate of the menu item.
- cx
[in] The width of the menu item.
- cy
[in] The height of the menu item.
- cxMenu
[in] The width of the menu control. The default implementation of MenuView_t::DrawString does not use this value.
- ichAccel
[in] Index of the accelerator character.
- xAccel
[in] Menu location where the accelerator text starts.
- chMnemo
[in] The mnemonic character. The default implementation of MenuView_t::DrawString does not use this value.
- cxArrow
[in] Width of the cascade arrow. The default implementation of MenuView_t::DrawString does not use this value.
Requirements
Header | menuview.hpp |
Windows Embedded CE | Windows Embedded CE 6.0 and later |