Public Types | Public Member Functions | Static Public Member Functions | Friends

DialogResizer Class Reference

Search for all occurrences

#include <winutil.h>

Inheritance diagram for DialogResizer:
Inheritance graph
[legend]

List of all members.

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)

Member Enumeration Documentation


Constructor & Destructor Documentation

DialogResizer ( ) [inline]
                    : mhDlg(NULL)
    {
        mMinDlgSize.left = mMinDlgSize.top = 0;
        mMinDlgSize.right = mMinDlgSize.bottom = 50;
        mOriginalClientRect.left = mOriginalClientRect.top = 0;
        mOriginalClientRect.right = mOriginalClientRect.bottom = 50;
    }

Member Function Documentation

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]

Friends And Related Function Documentation

static friend BOOL CALLBACK GetInitialPositionECP ( HWND  hwnd,
LPARAM  lParam 
) [friend]

DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer
DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer DialogResizer