Share via


MenuView_t::PopupStringItemComputeSize (Windows Embedded CE 6.0)

1/6/2010

This method calculates the size of a popup menu string item.

Syntax

static void PopupStringItemComputeSize(
  HDC hdc,
  WCHAR* pszItemString,
  int cchItemString,
  int ichAccel,
  WCHAR chMnemo,
  long cxMenu,
  long cyMenu,
  long* pcx,
  long* pcy
);

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.
  • ichAccel
    [in] Index of the accelerator character.
  • chMnemo
    [in] The mnemonic character.
  • cxMenu
    [in] The width of the menu control. The default implementation of MenuView_t::PopupStringItemComputeSize does not use this value.
  • cyMenu
    [in] The height of the menu control. The default implementation of MenuView_t::PopupStringItemComputeSize does not use this value.
  • pcx
    [out] Pointer to a long that receives the menu item width.
  • pcy
    [out] Pointer to a long that receives the menu item height.

Requirements

Header menuview.hpp
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

MenuView_t