

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































Types of Menu Items
States of menu items
Separator
Example Menu
MENU resource definition statement IDR_MY_MENU MENU DISCARDABLE BEGIN POPUP "&Tools“ BBar BEGIN BBar MENUITEM "Write &Text", ID_TOOLS_WRITE_TEXT, GRAYED BBar MENUITEM SEPARATOR BBar POPUP "&Draw" BEGIN BBar MENUITEM "&Rectangle", ID_TOOLS_DRAW_RECTANGLE BBar MENUITEM "&Circle", ID_TOOLS_DRAW_CIRCLE, CHECKED BBar MENUITEM "&Ellipse", ID_TOOLS_DRAW_ELLIPSE END BBar MENUITEM SEPARATOR BBar MENUITEM "&Erase All", ID_TOOLS_ERASE_ALL, INACTIVE END BBar MENUITEM "&About...", ID_ABOUT END
HMENU LoadMenu( HINSTANCE hInstance, // handle to module LPCTSTR lpMenuName // menu name or resource id );
ASCII version of the macro
Specifying a menu for a window CreateWindow(…,…, hMenu, …,…);