3ds Max C++ API Reference
Loading...
Searching...
No Matches
TrackViewActionCallback Class Reference

#include <itreevw.h>

+ Inheritance diagram for TrackViewActionCallback:

Public Member Functions

BOOL ExecuteAction (int id)
 
void SetHWnd (HWND hWnd)
 
- Public Member Functions inherited from ActionCallback
CoreExport ActionCallback ()
 Constructor.
 
virtual CoreExport ~ActionCallback ()
 Virtual destructor.
 
virtual CoreExport BOOL ExecuteAction (int id)
 Called by 3ds Max to execute the operation associated with an action item.
 
virtual CoreExport IMenuGetDynamicMenu (int id, HWND hwnd, IPoint2 &m)
 Called by 3ds Max if an action item declares itself as a dynamic menu.
 
CoreExport ActionTableGetTable ()
 Returns a pointer to the ActionTable the callback uses.
 
CoreExport void SetTable (ActionTable *pTable)
 Sets the ActionTable the callback uses.
 
CoreExport ActionCallback ()
 Constructor.
 
virtual CoreExport ~ActionCallback ()
 Virtual destructor.
 
virtual CoreExport BOOL ExecuteAction (int id)
 Called by 3ds Max to execute the operation associated with an action item.
 
 __declspec (deprecated) virtual IMenu *GetDynamicMenu(int
 
virtual CoreExport void PopulateDynamicMenu (MaxSDK::CUI::ICuiDynamicMenu *dynMenu, int actionId, HWND hWnd, const IPoint2 &cursorPos)
 If the ActionItem does produce a dynamic menu (i.e.
 
virtual CoreExport void DynamicMenuItemSelected (int actionId, int itemId)
 If the ActionItem does produce a dynamic menu (i.e.
 
CoreExport ActionTableGetTable ()
 Returns a pointer to the ActionTable the callback uses.
 
CoreExport void SetTable (ActionTable *pTable)
 Sets the ActionTable the callback uses.
 
CoreExport ActionCallback ()
 Constructor.
 
virtual CoreExport ~ActionCallback ()
 Virtual destructor.
 
virtual CoreExport BOOL ExecuteAction (int id)
 Called by 3ds Max to execute the operation associated with an action item.
 
virtual CoreExport IMenuGetDynamicMenu (int id, HWND hwnd, IPoint2 &m)
 Called by 3ds Max if an action item declares itself as a dynamic menu.
 
CoreExport ActionTableGetTable ()
 Returns a pointer to the ActionTable the callback uses.
 
CoreExport void SetTable (ActionTable *pTable)
 Sets the ActionTable the callback uses.
 
CoreExport ActionCallback ()
 Constructor.
 
virtual CoreExport ~ActionCallback ()
 Virtual destructor.
 
virtual CoreExport BOOL ExecuteAction (int id)
 Called by 3ds Max to execute the operation associated with an action item.
 
 __declspec (deprecated) virtual IMenu *GetDynamicMenu(int
 
virtual CoreExport void PopulateDynamicMenu (MaxSDK::CUI::ICuiDynamicMenu *dynMenu, int actionId, HWND hWnd, const IPoint2 &cursorPos)
 If the ActionItem does produce a dynamic menu (i.e.
 
virtual CoreExport void DynamicMenuItemSelected (int actionId, int itemId)
 If the ActionItem does produce a dynamic menu (i.e.
 
CoreExport ActionTableGetTable ()
 Returns a pointer to the ActionTable the callback uses.
 
CoreExport void SetTable (ActionTable *pTable)
 Sets the ActionTable the callback uses.
 
CoreExport ActionCallback ()
 Constructor.
 
virtual CoreExport ~ActionCallback ()
 Virtual destructor.
 
virtual CoreExport BOOL ExecuteAction (int id)
 Called by 3ds Max to execute the operation associated with an action item.
 
virtual CoreExport IMenuGetDynamicMenu (int id, HWND hwnd, IPoint2 &m)
 Called by 3ds Max if an action item declares itself as a dynamic menu.
 
CoreExport ActionTableGetTable ()
 Returns a pointer to the ActionTable the callback uses.
 
CoreExport void SetTable (ActionTable *pTable)
 Sets the ActionTable the callback uses.
 
- Public Member Functions inherited from BaseInterfaceServer
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport int NumInterfaces () const
 
virtual UtilExport BaseInterfaceGetInterfaceAt (int i) const
 
virtual UtilExport ~BaseInterfaceServer ()
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
 
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Public Attributes

HWND mhWnd
 
- Public Attributes inherited from ActionCallback
 HWND
 
IPoint2final { return nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 
- Protected Attributes inherited from BaseInterfaceServer
Tab< BaseInterface * > interfaces
 

Detailed Description

See also
Class ActionCallback

class TrackViewActionCallback : public ActionCallback

Description:
This is the callback object for handling TrackView actions.

Data Members:
HWND mhWnd;

The handle to the.window.

Member Function Documentation

◆ ExecuteAction()

BOOL ExecuteAction ( int  id)
virtual
Remarks
This method specifies which action to execute. This returns a BOOL that indicates if the action was actually executed. If the item is disabled, or if the table that owns it is not activated, then it won't execute, and returns FALSE. If it does execute then TRUE is returned.
Parameters:
int id

The action ID.

Reimplemented from ActionCallback.

◆ SetHWnd()

void SetHWnd ( HWND  hWnd)
inline
Remarks
This method sets the window handle.
Parameters:
HWND hWnd

The handle to the window you wish to set.
Default Implementation:
{ mhWnd = hWnd; }
1173{ mhWnd = hWnd; }
HWND mhWnd
Definition: itreevw.h:1175

Member Data Documentation

◆ mhWnd

HWND mhWnd