Public Member Functions | Public Attributes

MSRightClickMenu Class Reference

Search for all occurrences

#include <uiextend.h>

Inheritance diagram for MSRightClickMenu:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void  Init (RightClickMenuManager *manager, HWND hWnd, IPoint2 m)
void  Selected (UINT id)
Value call_filt_fn (Value *fn)

Public Attributes

RCMenu *  menu

Member Function Documentation

void Init ( RightClickMenuManager manager,
HWND  hWnd,
IPoint2  m 
) [virtual]
Remarks:
This method is called when the user right clicks on an object in the scene. At this point you can determine what you need in the menu, and add these items using manager->AddMenu().
Parameters:
RightClickMenuManager* manager

The menu manager. You may use this pointer to call methods of this class (for example to add items to the menu).

HWND hWnd

The window handle the user right clicked in.

IPoint2 m

The screen point the user right clicked on.

Implements RightClickMenu.

void Selected ( UINT  id ) [virtual]
Remarks:
This method is called when the user has selected an item from the menu.
Parameters:
UINT id

This is the id of the users selection. This id is established when the developer calls RightClickMenuManager::AddMenu().

Implements RightClickMenu.

Value* call_filt_fn ( Value fn )

Member Data Documentation

RCMenu* menu

MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu
MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu MSRightClickMenu