The GetMenuDefaultItem function determines the default menu item on the specified menu.
UINT GetMenuDefaultItem(
HMENU hMenu, |
|
UINT fByPos, |
|
UINT gmdiFlags | |
); |
Value |
Meaning |
GMDI_GOINTOPOPUPS |
Specifies that if the default item is one that opens a submenu, the function is to search recursively in the corresponding submenu. If the submenu has no default item, the return value identifies the item that opens the submenu. By default, the function returns the first default item on the specified menu, regardless of whether it is an item that opens a submenu. |
GMDI_USEDISABLED |
Specifies that the function is to return a default item, even if it is disabled. By default, the function skips disabled or grayed items. |
If the function succeeds, the return value is the identifier or position of the menu item.
If the function fails, the return value is - 1. To get extended error information, call GetLastError.
file: /Techref/os/win/api/win32/func/src/f34_7.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/12/28 20:19,
3.17.175.167:LOG IN
|
©2024 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? <A HREF="http://sxlist.com/techref/os/win/api/win32/func/src/f34_7.htm"> GetMenuDefaultItem</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.