3ds Max C++ API Reference
DialogResizer Class Reference

#include <winutil.h>

+ Inheritance diagram for DialogResizer:

Public Types

enum  PositionControl {
  kLockToTopLeft =1 , kLockToTopRight , kLockToBottomLeft , kLockToBottomRight ,
  kPositionsOnly =0xff
}
 
enum  ControlFlags { kDefaultBehavior =0 , kWidthChangesWithDialog =1<<8 , kHeightChangesWithDialog =1<<9 }
 

Public Member Functions

 DialogResizer ()
 
CoreExport void Initialize (HWND hDlg)
 
CoreExport void SetMinimumDlgSize (LONG wid, LONG ht)
 
CoreExport void SetControlInfo (int resID, PositionControl pos, DWORD flags=kDefaultBehavior)
 
CoreExport void SetControlInfo (HWND hwnd, PositionControl pos, DWORD flags=kDefaultBehavior)
 
CoreExport void Process_WM_SIZING (WPARAM wParam, LPARAM lParam)
 
CoreExport void Process_WM_SIZE (WPARAM wParam, LPARAM lParam)
 

Static Public Member Functions

static CoreExport void SaveDlgPosition (HWND hDlg, const MCHAR *keyname, const MCHAR *section=NULL, const MCHAR *inifn=NULL)
 
static CoreExport void LoadDlgPosition (HWND hDlg, const MCHAR *keyname, const MCHAR *section=NULL, const MCHAR *inifn=NULL)
 
- 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...
 

Friends

BOOL CALLBACK GetInitialPositionECP (HWND hwnd, LPARAM lParam)
 

Member Enumeration Documentation

◆ PositionControl

Enumerator
kLockToTopLeft 
kLockToTopRight 
kLockToBottomLeft 
kLockToBottomRight 
kPositionsOnly 
@ kLockToTopRight
Definition: winutil.h:764
@ kLockToTopLeft
Definition: winutil.h:764
@ kLockToBottomLeft
Definition: winutil.h:764
@ kLockToBottomRight
Definition: winutil.h:764
@ kPositionsOnly
Definition: winutil.h:764

◆ ControlFlags

Enumerator
kDefaultBehavior 
kWidthChangesWithDialog 
kHeightChangesWithDialog 
@ kHeightChangesWithDialog
Definition: winutil.h:766
@ kWidthChangesWithDialog
Definition: winutil.h:766
@ kDefaultBehavior
Definition: winutil.h:766

Constructor & Destructor Documentation

◆ DialogResizer()

DialogResizer ( )
inline
747  : mhDlg(NULL)
748  {
749  mMinDlgSize.left = mMinDlgSize.top = 0;
750  mMinDlgSize.right = mMinDlgSize.bottom = MaxSDK::UIScaled(50);
751  mOriginalClientRect.left = mOriginalClientRect.top = 0;
752  mOriginalClientRect.right = mOriginalClientRect.bottom = MaxSDK::UIScaled(50);
753  }
#define NULL
Definition: autoptr.h:18
int UIScaled(int value, int monitorID=-1)
Returns the given value multiplied with the UI scaling factor.
Definition: winutil.h:62

Member Function Documentation

◆ Initialize()

CoreExport void Initialize ( HWND  hDlg)

◆ SetMinimumDlgSize()

CoreExport void SetMinimumDlgSize ( LONG  wid,
LONG  ht 
)

◆ SetControlInfo() [1/2]

CoreExport void SetControlInfo ( int  resID,
PositionControl  pos,
DWORD  flags = kDefaultBehavior 
)

◆ SetControlInfo() [2/2]

CoreExport void SetControlInfo ( HWND  hwnd,
PositionControl  pos,
DWORD  flags = kDefaultBehavior 
)

◆ Process_WM_SIZING()

CoreExport void Process_WM_SIZING ( WPARAM  wParam,
LPARAM  lParam 
)

◆ Process_WM_SIZE()

CoreExport void Process_WM_SIZE ( WPARAM  wParam,
LPARAM  lParam 
)

◆ SaveDlgPosition()

static CoreExport void SaveDlgPosition ( HWND  hDlg,
const MCHAR keyname,
const MCHAR section = NULL,
const MCHAR inifn = NULL 
)
static

◆ LoadDlgPosition()

static CoreExport void LoadDlgPosition ( HWND  hDlg,
const MCHAR keyname,
const MCHAR section = NULL,
const MCHAR inifn = NULL 
)
static

Friends And Related Function Documentation

◆ GetInitialPositionECP

BOOL CALLBACK GetInitialPositionECP ( HWND  hwnd,
LPARAM  lParam 
)
friend