3ds Max C++ API Reference
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Detailed Description

Description:
This smart pointer is used to simplify scope management

Constructor & Destructor Documentation

◆ TabDialogPointer() [1/4]

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

◆ TabDialogPointer() [2/4]

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

◆ TabDialogPointer() [3/4]

TabDialogPointer ( TabDialogPointer src)
inlineexplicit
466 : 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
476  : mpDlg(NULL)
477  {
479  if (i != NULL) {
480  mpDlg = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
481  multiline, helpID, tabID, dialogID);
482  }
483  }
ITabDialogManager * GetTabDialogManager()
Definition: ITabDialog.h:142
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
485 { FreeDlg(); mpDlg = NULL; }

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator ITabbedDialog *()

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

◆ operator*()

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

◆ get()

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

◆ release()

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

◆ operator->()

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

◆ operator&()

ITabbedDialog** operator& ( )
inline
495 { 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
507  {
509  if (i != NULL) {
510  ITabbedDialog* retVal = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
511  multiline, helpID, tabID, dialogID);
512  if (retVal != NULL) {
513  FreeDlg();
514  mpDlg = retVal;
515  return true;
516  }
517  }
518  return false;
519  }