Help Center
Help Center›AfxNova

CMenu.SetItemTextmethod

Sets the text of the specified menu item.

WindowsmethodCMenu.incundocumented
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.

Syntax

PRIVATE FUNCTION CMenu.SetItemText (BYVAL hMenu AS HMENU, BYVAL uItem AS DWORD, BYREF wszText AS WSTRING, BYVAL fByPosition AS LONG = FALSE) AS BOOLEAN

Parameters

NameDescription
hMenu= A handle to the menu that contains the menu item.
uItem= The identifier or position of the menu item to get information about. The meaning of this parameter depends on the value of fByPosition.
wszText= Text to set.
fByPosition= The meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position.

Return value

TRUE or FALSE. Usage example: CMenu.SetItemText(hMenu, IDM_OPEN, "Open new")

Description

Sets the text of the specified menu item.

Reference

  • Include file CMenu.inc
  • Defined in AfxNova/CMenu.inc:635