ExitMAXCallback Class Reference
 
 
 
ExitMAXCallback Class Reference

#include <maxapi.h>

Inheritance diagram for ExitMAXCallback:
MaxHeapOperators ExitMAXCallback2

Class Description

A callback object that will get called before the program exits.

Register an instance of this class with Interface::RegisterExitMAXCallback. During normal shutdowns, the Exit method will be called. The Exit method is not called during shutdown after crash recovery.

See also:
ExitMAXCallback2

Public Member Functions

virtual  ~ExitMAXCallback ()
virtual BOOL  Exit (HWND hWnd)=0
  Method called on normal shutdown.

Constructor & Destructor Documentation

virtual ~ExitMAXCallback ( ) [inline, virtual]
Remarks:
Destructor.
{}

Member Function Documentation

virtual BOOL Exit ( HWND  hWnd ) [pure virtual]

Method called on normal shutdown.

Parameters:
[in] hWnd - MAX main window handle is passed in.
Returns:
FALSE to abort the exit, TRUE otherwise.