Article ID: 110498
Article Last Modified on 10/29/2003
APPLIES TO
- Microsoft Visual Basic 3.0 Professional Edition
- Microsoft Visual Basic 3.0 Professional Edition
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
Additional query words: 3.00
Keywords: kbref kb3rdparty KB110498