Class IMenuBarContext

3DS Max Plug-In SDK

Class IMenuBarContext

See Also: Class IMenuContext, Class Interface.

class IMenuBarContext: public IMenuContext

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.

Methods:

public:

Prototype:

virtual void SetMenu(IMenu* pMenu) = 0;

Remarks:

This method allows you to set the menu associated with this context.

Parameters:

IMenu* pMenu

A pointer to the menu.

Prototype:

virtual IMenu* GetMenu() = 0;

Remarks:

This method returns a pointer to the menu associated with this context.

Prototype:

virtual HMENU CreateWindowsMenu() = 0;

Remarks:

Used Internally.

This method will create a new windows menu and return it’s handle.

Prototype:

virtual void UpdateWindowsMenu() = 0;

Remarks:

Used Internally.

This method will update the current windows menu.

Prototype:

virtual HMENU GetCurWindowsMenu() = 0;

Remarks:

Used Internally.

This method returns the handle to the current windows menu.

Prototype:

virtual void ExecuteAction(int cmdId) = 0;

Remarks:

This method executes an action based on the provided command ID.

Parameters:

int cmdId

The command ID of the action to execute.

Prototype:

virtual bool CommandIDInRange(int cmdId) = 0;

Remarks:

Used internally.

Parameters:

int cmdId

The command ID.