please dont rip this site Prev Next

WM_MENUCHAR Overview  Group

The WM_MENUCHAR message is sent when a menu is active and the user presses a key that does not correspond to any mnemonic or accelerator key. This message is sent to the window that owns the menu.

WM_MENUCHAR 

chUser = (TCHAR) LOWORD(wParam); // character code

fuFlag = (UINT) HIWORD(wParam); // menu flag 

hmenu = (HMENU) lParam;         // handle of menu 

 

Parameters

chUser
Value of the low-order word of wParam. Specifies the character code that corresponds to the key the user pressed.
fuFlag
Value of the high-order word of wParam. Specifies the type of the active menu. This parameter can be one of the following values:

Value

Meaning

MF_POPUP

drop-down menu, submenu, or shortcut menu

MF_SYSMENU

window menu (System menu or Control menu)

hmenu
Value of lParam. Identifies the active menu.

Return Values

An application that processes this message should return one of the following values in the high-order word of the return value:

Value

Meaning

MNC_IGNORE

Informs Windows that it should discard the character the user pressed and create a short beep on the system speaker.

MNC_CLOSE

Informs Windows that it should close the active menu.

MNC_EXECUTE

Informs Windows that it should choose the item specified in the low-order word of the return value. The owner window receives a WM_COMMAND message.

MNC_SELECT

Informs Windows that it should select the item specified in the low-order word of the return value.

Remarks

The low-order word is ignored if the high-order word contains 0 or 1. An application should process this message when an accelerator is used to select a menu item that displays a bitmap.


file: /Techref/os/win/api/win32/mess/src/msg25_24.htm, 3KB, , updated: 2000/4/7 11:20, local time: 2024/11/7 17:14,
TOP NEW HELP FIND: 
44.211.34.178:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/os/win/api/win32/mess/src/msg25_24.htm"> WM_MENUCHAR</A>

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 2024 contributors:
o List host: MIT, Site host massmind.org, 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 www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .