BOOL WINAPI AppendMenu(
__in HMENU hMenu,
__in UINT uFlags,
__in UINT_PTR uIDNewItem,
__in_opt LPCTSTR lpNewItem
);
lpNewItem [in, optional]
LPCTSTR
The content of the new menu item. The interpretation of lpNewItem depends on whether the uFlags parameter includes the following values.
Value Meaning
MF_BITMAP
0x00000004L Contains a bitmap handle.
MF_OWNERDRAW
0x00000100L Contains an application-supplied value that can be used to maintain additional data related to the menu item. The value is in the itemData member of the structure pointed to by the lParam parameter of the WM_MEASUREITEM or WM_DRAWITEM message sent when the menu is created or its appearance is updated.
MF_STRING
0x00000000L Contains a pointer to a null-terminated string.
а для сепаратора используйт флаг MF_SEPARATOR вместо MF_OWNERDRAW
|