Page 185 - DCAP408_WEB_PROGRAMMING
P. 185
Unit 10: Menus
case x: Notes
// TODO: this is for example only, replace
x with
// whatever values you gave for the
MenuID
// then process the menu event here by
calling
// whatever function necessary
}
}
// return the message so other wndprocs can process
them
base.WndProc(ref messg);
}
#endregion // System Menu API
Self Assessment
Fill in the blank:
15. System Menu uses subclassing, so DO NOT use the Stop button on the VB toolbar, or
attempt to debug the ......................... procedure.
10.7 Summary
For getting started with menus, we use Menu Editor Tool that helps us to effortlessly
create a menu interface for our applications, that too in no time.
Coding for the menus is the same as coding for command buttons - coding for the ‘click’
event.
VB 6 provides a simple editor for strings but you have to have a file created in another tool
for all of the other choices.
To use the icons in a program, we use a VB 6 “Load Resource” function.
Variables can be set to move the menu to the left of the image, or to change the number of
pixels away from the image.
Microsoft provides two tools with Microsoft Visual C++ that allow Visual C++
programmers to add version information to compiled applications i.e., the Microsoft
Resource Compiler (RC.EXE) and the Microsoft App Studio, a resource editor.
The Flyout Menus allow you set up a series of positioning rules for more complex
positioning behavior.
The Flyouts will use the default positioning rules to put the top-left corner of the menu
near the top-right corner of the arrow image.
10.8 Keywords
Flyout Menus: The Flyout Menus allow you set up a series of positioning rules for more complex
positioning behavior.
LOVELY PROFESSIONAL UNIVERSITY 179