Public Member Functions

IMenuBarContext Class Reference

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


Search for all occurrences

Detailed Description

See also:
Class IMenuContext, Class Interface.

Description:
This class is available in release 4.0 and later only.

Description:
This class is available in release 4.0 and later only.

This abstract class represents an interface for a menu bar context. Methods that are marked as internal should not be used.

#include <imenuman.h>

Inheritance diagram for IMenuBarContext:
Inheritance graph
[legend]

List of all members.

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.

IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext
IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext IMenuBarContext