Xem mẫu
Trần Anh Tuấn A
Menu
The menu bar that appears at the top of a window is an application`s toplevel menu, and the commands in it are called toplevel menu items.
The menu that appears when a toplevel menu item is clicked is a dropdown menu, and items in that menu are referred to as menu items
Menu items are identified by integer values called menu item IDs or command IDs
Menu
Windows also supports popup menus that look like dropdown menus but can be popped up anywhere on the screen
Cascading menus are actually Pull_down menus that are submenus.
Pull_down Menu
Cascading Popup Menu Menu
Menu
You can create a menu in an MFC application in three ways:
You can create a menu programmatically, piecing it together using CreateMenu, InsertMenu, and other CMenu functions
You can initialize a series of data structures defining the menu`s contents and create the menu with CMenu::LoadMenuIndirect
You can create a menu resource and load the resulting menu into the application at run time (common use)
Create Menu
Use resource to create menu
...
- tailieumienphi.vn
nguon tai.lieu . vn