Microsoft KB Archive/66315

INF: Sample PM Menu Bar and Frame Control Application PSS ID Number: Q66315 Article last modified on 09-09-1991 PSS database name: P_PresMan

1.10 1.21

OS/2

Summary:

There is a sample application named PMMENU in the Software/Data Library that demonstrates how to modify an application’s menu bar dynamically. It also shows how to implement a status bar by creating a new frame control.

PMMENU demonstrates how to do the following:


 * 1) Create a new item on the menu bar.
 * 2) Display a bitmap in a menu item.
 * 3) Add or delete items from the system menu.
 * 4) Create a status bar that displays information about the different menu selections as they are selected.

PMMENU can be found in the Software/Data Library by searching on the keyword PMMENU, the Q number of this article, or S12733. PMMENU was archived using the PKware file-compression utility.

More Information:

The PMMENU sample application makes use of the following messages:

MM_ITEMIDFROMPOSITION MM_INSERTITEM MM_QUERYITEM MM_DELETEITEM

WM_FORMATFRAME WM_QUERYFRAMECTLCOUNT WM_MENUSELECT

Copyright Microsoft Corporation 1991.