Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TSubMenu Class Reference

Used to differentiate between different types of TMenuItem: individual menu items and submenus. More...

#include <menus.h>

Inheritance diagram for TSubMenu::

TMenuItem List of all members.

Public Methods

 TSubMenu (const char *nm, ushort key, ushort helpCtx=hcNoContext)

Detailed Description

TSubMenu is a class used to differentiate between different types of TMenuItem: individual menu items and submenus.

TVision supplies the overloaded operator+ so you can easily construct complete menus without dozens of nested parentheses. When you use TSubMenu, the compiler can distinguish between attempts to use operator+ on individual menu items and their submenus.

Definition at line 164 of file menus.h.


Constructor & Destructor Documentation

TSubMenu::TSubMenu ( const char * nm,
ushort key,
ushort helpCtx = hcNoContext )
 

Calls constructor TMenuItem(nm, 0, key, helpCtx).

See also:
TMenuItem::TMenuItem


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:37 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001