3ds Max C++ API Reference
Loading...
Searching...
No Matches
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.
 
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.
 

Friends

BOOL CALLBACK GetInitialPositionECP (HWND hwnd, LPARAM lParam)
 

Member Enumeration Documentation

◆ PositionControl

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

◆ ControlFlags

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

Constructor & Destructor Documentation

◆ DialogResizer()

DialogResizer ( )
inline
721 : mhDlg(NULL)
722 {
723 mMinDlgSize.left = mMinDlgSize.top = 0;
724 mMinDlgSize.right = mMinDlgSize.bottom = MaxSDK::UIScaled(50);
725 mOriginalClientRect.left = mOriginalClientRect.top = 0;
726 mOriginalClientRect.right = mOriginalClientRect.bottom = MaxSDK::UIScaled(50);
727 }
#define NULL
Definition: autoptr.h:18
T UIScaled(T value, int monitorID=-1)
Returns the given value multiplied with the UI scaling factor.
Definition: winutil.h:64

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