How to Add Items into Control Menu Box of Visual Basic Form (110498)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q110498 SUMMARY
To add items into the Control-menu box of a Visual Basic Form, you can use
the AppendMenu API (application programming interface) function in Windows.
However, Visual Basic cannot directly detect any events for the added menu
item. To catch the message for the added menu item, you can use a subclass
control. You can write subclass controls using Microsoft C, but not using
Visual Basic. Alternatively, you can obtain subclass controls from third-
party programs such as SpyWorks from Desaware.
The Control-menu box, found in the upper-left corner of a Visual Basic
form, is also known as the System-menu box in other products for Windows.
The default Control-menu box contains the following nine entries including
separators:
Restore
Move
Size
Minimize
Maximize
-----------------------
Close Alt+F4
-----------------------
Switch to... Ctrl+Esc
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kb3rdparty kbref KB110498 |
---|
|