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

#include <ITabDialog.h>

+ Inheritance diagram for TabDialogPointer:

Public Member Functions

 TabDialogPointer ()
 
 TabDialogPointer (ITabbedDialog *dlg)
 
 TabDialogPointer (TabDialogPointer &src)
 
 TabDialogPointer (HWND parent, HINSTANCE instance, const MCHAR *dlg, ITabDialogProc *mainProc, bool multiline, DWORD helpID=0, int tabID=-1, const Class_ID &dialogID=Class_ID(0, 0))
 
 ~TabDialogPointer ()
 
TabDialogPointeroperator= (ITabbedDialog *dlg)
 
TabDialogPointeroperator= (TabDialogPointer &src)
 
 operator ITabbedDialog * ()
 
ITabbedDialogoperator* ()
 
ITabbedDialogget ()
 
ITabbedDialogrelease ()
 
ITabbedDialogoperator-> ()
 
ITabbedDialog ** operator& ()
 
bool Create (HWND parent, HINSTANCE instance, const MCHAR *dlg, ITabDialogProc *mainProc, bool multiline, int tabID=-1, DWORD helpID=0, const Class_ID &dialogID=Class_ID(0, 0))
 

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.
 

Detailed Description

Description:
This smart pointer is used to simplify scope management

Constructor & Destructor Documentation

◆ TabDialogPointer() [1/4]

TabDialogPointer ( )
inline
463: mpDlg(NULL) { }
#define NULL
Definition: autoptr.h:18

◆ TabDialogPointer() [2/4]

TabDialogPointer ( ITabbedDialog dlg)
inlineexplicit
464: mpDlg(dlg) { }

◆ TabDialogPointer() [3/4]

TabDialogPointer ( TabDialogPointer src)
inlineexplicit
465: mpDlg(src.mpDlg) { src.mpDlg = NULL; }

◆ TabDialogPointer() [4/4]

TabDialogPointer ( HWND  parent,
HINSTANCE  instance,
const MCHAR dlg,
ITabDialogProc mainProc,
bool  multiline,
DWORD  helpID = 0,
int  tabID = -1,
const Class_ID dialogID = Class_ID(0,0) 
)
inline
475 : mpDlg(NULL)
476 {
478 if (i != NULL) {
479 mpDlg = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
480 multiline, helpID, tabID, dialogID);
481 }
482 }
ITabDialogManager * GetTabDialogManager()
Definition: ITabDialog.h:141
Definition: ITabDialog.h:47
virtual ITabbedDialog * CreateTabbedDialog(HWND parent, HINSTANCE instance, const MCHAR *dlg, ITabDialogProc *mainProc, bool multiline, DWORD helpID=0, int tabID=-1, const Class_ID &dialogID=Class_ID(0, 0))=0
Create a tabbed dialog.

◆ ~TabDialogPointer()

~TabDialogPointer ( )
inline
484{ FreeDlg(); mpDlg = NULL; }

Member Function Documentation

◆ operator=() [1/2]

TabDialogPointer & operator= ( ITabbedDialog dlg)
inline
486{ FreeDlg(); mpDlg = dlg; return *this; }

◆ operator=() [2/2]

TabDialogPointer & operator= ( TabDialogPointer src)
inline
487{ FreeDlg(); mpDlg = src.mpDlg; src.mpDlg = NULL; return *this; }

◆ operator ITabbedDialog *()

operator ITabbedDialog * ( )
inline
489{ return mpDlg; }

◆ operator*()

ITabbedDialog & operator* ( )
inline
490{ return *mpDlg; }

◆ get()

ITabbedDialog * get ( )
inline
491{ return mpDlg; }

◆ release()

ITabbedDialog * release ( )
inline
492{ ITabbedDialog* dlg = mpDlg; mpDlg = NULL; return dlg; }
Definition: ITabDialog.h:295

◆ operator->()

ITabbedDialog * operator-> ( )
inline
493{ return mpDlg; }

◆ operator&()

ITabbedDialog ** operator& ( )
inline
494{ return &mpDlg; }

◆ Create()

bool Create ( HWND  parent,
HINSTANCE  instance,
const MCHAR dlg,
ITabDialogProc mainProc,
bool  multiline,
int  tabID = -1,
DWORD  helpID = 0,
const Class_ID dialogID = Class_ID(0,0) 
)
inline
506 {
508 if (i != NULL) {
509 ITabbedDialog* retVal = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
510 multiline, helpID, tabID, dialogID);
511 if (retVal != NULL) {
512 FreeDlg();
513 mpDlg = retVal;
514 return true;
515 }
516 }
517 return false;
518 }