class PRootMenu: PROOTMENU_ANCESTOR

A class representing a list of sub-menus consistuting a menu bar.

Inheritance:


Public Methods

[more] PRootMenu ()
Create a new top level, and empty, menu bar.
[more] PRootMenu ( PRESOURCE_ID resID )
Load a menu resource and create all menu items and sub-menus.
[more]virtual ~PRootMenu ()
Destroy the menu and all its sub-menus.
[more]PMenuItem* GetItemFromKey ( PRESOURCE_ID key )
Get a menu item given a unique ID.

Public

[more] New functions for class

Protected Fields

[more]ItemDict keyedItems
Hash table lookup for unique menu IDs


Documentation

A class representing a list of sub-menus consistuting a menu bar. The exact appearance and location of the root menu is platform dependent.

This is typically a bar of sub-menus. At this time only sub-menus can be added to a root menu.

o PRootMenu()
Create a new top level, and empty, menu bar.

o PRootMenu( PRESOURCE_ID resID )
Load a menu resource and create all menu items and sub-menus.
Parameters:
resID - Unique identifier for the menu bar resource.

ovirtual ~PRootMenu()
Destroy the menu and all its sub-menus.

o New functions for class

oPMenuItem* GetItemFromKey( PRESOURCE_ID key )
Get a menu item given a unique ID. This is usually used when a menu is loaded from a resource and you wish to get the menu item from the key used in the resource template.

Returns:
pointer to menu item, or NULL if no menu item has the key.
Parameters:
key - Unique identifier for the menu item within the menu bar and all its sub-menus.

oItemDict keyedItems
Hash table lookup for unique menu IDs


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.