#include <winutil.h>
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) |
Friends |
|
static friend BOOL CALLBACK | GetInitialPositionECP (HWND hwnd, LPARAM lParam) |
enum PositionControl |
{ kLockToTopLeft=1, kLockToTopRight, kLockToBottomLeft, kLockToBottomRight, kPositionsOnly=0xff };
enum ControlFlags |
{ kDefaultBehavior=0, kWidthChangesWithDialog=1<<8, kHeightChangesWithDialog=1<<9 };
DialogResizer | ( | ) | [inline] |
: mhDlg(NULL) { mMinDlgSize.left = mMinDlgSize.top = 0; mMinDlgSize.right = mMinDlgSize.bottom = 50; mOriginalClientRect.left = mOriginalClientRect.top = 0; mOriginalClientRect.right = mOriginalClientRect.bottom = 50; }
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 CoreExport void SaveDlgPosition | ( | HWND | hDlg, |
const MCHAR * | keyname, | ||
const MCHAR * | section = NULL , |
||
const MCHAR * | inifn = NULL |
||
) | [static] |
static CoreExport void LoadDlgPosition | ( | HWND | hDlg, |
const MCHAR * | keyname, | ||
const MCHAR * | section = NULL , |
||
const MCHAR * | inifn = NULL |
||
) | [static] |
static friend BOOL CALLBACK GetInitialPositionECP | ( | HWND | hwnd, |
LPARAM | lParam | ||
) | [friend] |