please dont rip this site Prev Next

MENUITEMTEMPLATE info  Overview  Group

The MENUITEMTEMPLATE structure defines a menu item in a menu template.

typedef struct {         // mit 

    WORD mtOption;       // menu item flags 

    WORD mtID;           // menu item identifier (omitted for pop-up items) 

    WCHAR mtString[1];   // null-terminated string for menu item 




Specifies one or more of the following predefined menu options that control the appearance of the menu item:




Indicates that the menu item has a check mark next to it.


Indicates that the menu item is initially inactive and drawn with a gray effect.


Indicates that the menu item has a vertical separator to its left.


Indicates that the menu item is placed in a new column. The old and new columns are separated by a bar.


Indicates that the menu item is placed in a new column.


Indicates that the owner window of the menu is responsible for drawing all visual aspects of the menu item, including highlighted, checked, and inactive states. This option is not valid for an item in a menu bar.


Indicates that the item is one that opens a drop-down menu or submenu.

Specifies the menu item identifier of a command item; a command item sends a command message to its owner window. The MENUITEMTEMPLATE structure for an item that opens a drop-down menu or submenu does not contain the mtID member.
Specifies the null-terminated string for the menu item.

See Also


file: /Techref/os/win/api/win32/struc/src/str11_6.htm, 3KB, , updated: 2000/4/7 12:20, local time: 2023/6/10 07:56,

 ©2023 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!


After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2023 contributors:
o List host: MIT, Site host, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!