IMenuBarContext Class Reference
 
 
 
IMenuBarContext Class Reference

This reference page is linked to from the following overview topics: IMenuBarContext.


#include <imenuman.h>

Inheritance diagram for IMenuBarContext:
IMenuContext InterfaceServer MaxHeapOperators

Class Description

This abstract class represents an interface for a menu bar context.

Note:
Methods marked as internal should not be used.
See also:
Class IMenuContext, Class Interface.

Public Member Functions

virtual void  SetMenu (IMenu *pMenu)=0
virtual IMenu GetMenu ()=0
virtual HMENU  CreateWindowsMenu ()=0
virtual void  UpdateWindowsMenu ()=0
virtual HMENU  GetCurWindowsMenu ()=0
virtual void  ExecuteAction (int cmdId)=0
virtual bool  CommandIDInRange (int cmdId)=0

Member Function Documentation

virtual void SetMenu ( IMenu pMenu ) [pure virtual]
Remarks:
This method allows you to set the menu associated with this context.
Parameters:
IMenu* pMenu

A pointer to the menu.
virtual IMenu* GetMenu ( ) [pure virtual]
Remarks:
This method returns a pointer to the menu associated with this context.
virtual HMENU CreateWindowsMenu ( ) [pure virtual]
Remarks:
Used Internally.

This method will create a new windows menu and return it's handle.
virtual void UpdateWindowsMenu ( ) [pure virtual]
Remarks:
Used Internally.

This method will update the current windows menu.
virtual HMENU GetCurWindowsMenu ( ) [pure virtual]
Remarks:
Used Internally.

This method returns the handle to the current windows menu.
virtual void ExecuteAction ( int  cmdId ) [pure virtual]
Remarks:
This method executes an action based on the provided command ID.
Parameters:
int cmdId

The command ID of the action to execute.
virtual bool CommandIDInRange ( int  cmdId ) [pure virtual]
Remarks:
Used internally.
Parameters:
int cmdId

The command ID.