TabDialogPointer Class Reference

TabDialogPointer Class Reference

#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...
 
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...
 

Constructor & Destructor Documentation

TabDialogPointer ( )
inline
464 : mpDlg(NULL) { }
#define NULL
Definition: autoptr.h:18
TabDialogPointer ( ITabbedDialog dlg)
inlineexplicit
465 : mpDlg(dlg) { }
TabDialogPointer ( TabDialogPointer src)
inlineexplicit
466 : mpDlg(src.mpDlg) { src.mpDlg = NULL; }
#define NULL
Definition: autoptr.h:18
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  }
#define NULL
Definition: autoptr.h:18
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:142
~TabDialogPointer ( )
inline
485 { FreeDlg(); mpDlg = NULL; }
#define NULL
Definition: autoptr.h:18

Member Function Documentation

TabDialogPointer& operator= ( ITabbedDialog dlg)
inline
487 { FreeDlg(); mpDlg = dlg; return *this; }
TabDialogPointer& operator= ( TabDialogPointer src)
inline
488 { FreeDlg(); mpDlg = src.mpDlg; src.mpDlg = NULL; return *this; }
#define NULL
Definition: autoptr.h:18
operator ITabbedDialog * ( )
inline
490 { return mpDlg; }
ITabbedDialog& operator* ( )
inline
491 { return *mpDlg; }
ITabbedDialog* get ( )
inline
492 { return mpDlg; }
ITabbedDialog* release ( )
inline
493 { ITabbedDialog* dlg = mpDlg; mpDlg = NULL; return dlg; }
Definition: ITabDialog.h:296
#define NULL
Definition: autoptr.h:18
ITabbedDialog* operator-> ( )
inline
494 { return mpDlg; }
ITabbedDialog** operator& ( )
inline
495 { 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
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  }
Definition: ITabDialog.h:296
#define NULL
Definition: autoptr.h:18
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:142