3ds Max C++ API Reference
Loading...
Searching...
No Matches
DialogResizer Class Reference

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/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:824
@ kLockToTopLeft
Definition winutil.h:824
@ kLockToBottomLeft
Definition winutil.h:824
@ kLockToBottomRight
Definition winutil.h:824
@ kPositionsOnly
Definition winutil.h:824

◆ ControlFlags

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

Constructor & Destructor Documentation

◆ DialogResizer()

DialogResizer ( )
inline
807 : mhDlg(NULL)
808 {
809 mMinDlgSize.left = mMinDlgSize.top = 0;
810 mMinDlgSize.right = mMinDlgSize.bottom = MaxSDK::UIScaled(50);
811 mOriginalClientRect.left = mOriginalClientRect.top = 0;
812 mOriginalClientRect.right = mOriginalClientRect.bottom = MaxSDK::UIScaled(50);
813 }
#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:66

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()

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

◆ LoadDlgPosition()

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

◆ GetInitialPositionECP

BOOL CALLBACK GetInitialPositionECP ( HWND hwnd,
LPARAM lParam )
friend