TabDialogPointer Class Reference

TabDialogPointer Class Reference
+ This reference page is linked to from the following overview topics:

#include <ITabDialog.h>

Class Description

Description:
This smart pointer is used to simplify scope management
+ 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...
 

Constructor & Destructor Documentation

TabDialogPointer ( )
inline
467 : mpDlg(NULL) { }
#define NULL
Definition: autoptr.h:20
TabDialogPointer ( ITabbedDialog dlg)
inlineexplicit
468 : mpDlg(dlg) { }
TabDialogPointer ( TabDialogPointer src)
inlineexplicit
469 : mpDlg(src.mpDlg) { src.mpDlg = NULL; }
#define NULL
Definition: autoptr.h:20
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
479  : mpDlg(NULL)
480  {
482  if (i != NULL) {
483  mpDlg = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
484  multiline, helpID, tabID, dialogID);
485  }
486  }
#define NULL
Definition: autoptr.h:20
Definition: ITabDialog.h:46
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.
ITabDialogManager * GetTabDialogManager()
Definition: ITabDialog.h:147
~TabDialogPointer ( )
inline
488 { FreeDlg(); mpDlg = NULL; }
#define NULL
Definition: autoptr.h:20

Member Function Documentation

TabDialogPointer& operator= ( ITabbedDialog dlg)
inline
490 { FreeDlg(); mpDlg = dlg; return *this; }
TabDialogPointer& operator= ( TabDialogPointer src)
inline
491 { FreeDlg(); mpDlg = src.mpDlg; src.mpDlg = NULL; return *this; }
#define NULL
Definition: autoptr.h:20
operator ITabbedDialog * ( )
inline
493 { return mpDlg; }
ITabbedDialog& operator* ( )
inline
494 { return *mpDlg; }
ITabbedDialog* get ( )
inline
495 { return mpDlg; }
ITabbedDialog* release ( )
inline
496 { ITabbedDialog* dlg = mpDlg; mpDlg = NULL; return dlg; }
Definition: ITabDialog.h:301
#define NULL
Definition: autoptr.h:20
ITabbedDialog* operator-> ( )
inline
497 { return mpDlg; }
ITabbedDialog** operator& ( )
inline
498 { return &mpDlg; }
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
510  {
512  if (i != NULL) {
513  ITabbedDialog* retVal = i->CreateTabbedDialog(parent, instance, dlg, mainProc,
514  multiline, helpID, tabID, dialogID);
515  if (retVal != NULL) {
516  FreeDlg();
517  mpDlg = retVal;
518  return true;
519  }
520  }
521  return false;
522  }
Definition: ITabDialog.h:301
#define NULL
Definition: autoptr.h:20
Definition: ITabDialog.h:46
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.
ITabDialogManager * GetTabDialogManager()
Definition: ITabDialog.h:147