How do I display a common window’s menu from .Net code, the one that appears when Alt+Space is pressed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How to disable the Close button on the title bar of a console application by using Visual Basic 2005 or Visual Basic .NET
Inserted from http://support.microsoft.com/kb/818361
If the wParam is SC_KEYMENU, lParam contains the character code of the key that is used with the ALT key to display the popup menu. For example, pressing ALT+F to display the File popup will cause a WM_SYSCOMMAND with wParam equal to SC_KEYMENU and lParam equal to ‘f’.
Inserted from http://msdn.microsoft.com/en-us/library/ms646360.aspx
The menu items in a window menu can be modified by using the GetSystemMenu, AppendMenu, InsertMenu, ModifyMenu, InsertMenuItem, and SetMenuItemInfo functions. Applications that modify the window menu must process WM_SYSCOMMAND messages.
Inserted from http://msdn.microsoft.com/en-us/library/ms646360.aspx