DOCUMENT:Q24600 09-JUL-2000 [win16sdk]
TITLE :AddMenu.exe Demonstrates Adding Menus Dynamically
PRODUCT :Microsoft Windows Software Development Kit
PROD/VER:WINDOWS:3.0,3.1
OPER/SYS:
KEYWORDS:kbfile kbsample kbMenu kbOSWin2000 kbResource kbGrpDSUser kbOSWin310 kbWndw kbOSWin300
======================================================================
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1
-------------------------------------------------------------------------------
SUMMARY
=======
There are two different methods that you can use to add a pop-up menu to the
menu bar at run time.
The first method is to define a version of the application's main menu that
includes the pop-up. This is done in the resource (RC) file with any other menus
that the application uses. To add the menu to the menu bar, use the following
sequence of code:
hMenu = LoadMenu(hInst, (LPSTR)"