|
How to modify (Add/Remove) System Menu using API ?
|
Total Hit (12413) |
In this article you will learn how to modify system menu (control menu). You will also learn how to handle event of newly added menu item.
To modify system menu first you have to call GetSystemMenu api to get handle of system menu and then you can all other menu APIs (i.e. GetMenuItemCount, Appen
....Read More |
Rating
|
|
|
How to disable form's Close button (X)?
|
Total Hit (5263) |
To modify an item in the Visual Basic Control menu (also known as the System menu), you need to use the SetMenuItemInfo API function. You can use ModifyMenuItem or EnablemenuItem api, both functions work. However it appears that Visual Basic re-enables the menu item whose ID is SC_CLOSE. This is why
....Read More |
Rating
|
|
|
|
How to display shortcut PopupMenu generated at runtime ?
|
Total Hit (5402) |
This article will show you simple demo of creating and displaying popup menu using TrackPopupMenu api. You will learn the following items from this sample code.
«UL»«LI»How to create PopupMenu, MenuItems and Submenu at runtime using CreatePopupMenu and AppendMenu APIs
«LI»How to display popupmen
....Read More |
Rating
|
|
|
How to add your own menu item in System menu ?
|
Total Hit (4760) |
This sample code will show you
- How to add a new menuitem in the system menu using InsertMenuItem API
- How to respond to the events generated by new menuitem with the subclassing technique
- How to get/set item state using GetMenuState and SetMenuItemInfo APIs
- How to remove menuitem from
....Read More |
Rating
|
|
|
|
|