Mercurial > vba-linux
diff src/win32/ResizeDlg.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/ResizeDlg.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,44 @@ 1.4 +#ifndef VBA_WIN32_RESIZEDLG_H 1.5 +#define VBA_WIN32_RESIZEDLG_H 1.6 + 1.7 +#ifndef _INC_TCHAR 1.8 +#include <tchar.h> 1.9 +#endif // _INC_TCHAR 1.10 + 1.11 +// 1.12 +// Predefined sizing information 1.13 +#define DS_MoveX 1 1.14 +#define DS_MoveY 2 1.15 +#define DS_SizeX 4 1.16 +#define DS_SizeY 8 1.17 + 1.18 +typedef struct DialogSizerSizingItem // sdi 1.19 +{ 1.20 + UINT uControlID; 1.21 + UINT uSizeInfo; 1.22 +} DialogSizerSizingItem; 1.23 + 1.24 +#define DIALOG_SIZER_START(name) DialogSizerSizingItem name[] = { 1.25 +#define DIALOG_SIZER_ENTRY(controlID, flags) { controlID, flags }, 1.26 +#define DIALOG_SIZER_END() { 0xFFFFFFFF, 0xFFFFFFFF } }; 1.27 + 1.28 +class ResizeDlg : public CDialog 1.29 +{ 1.30 + DECLARE_DYNAMIC(ResizeDlg) // what will this do? 1.31 +public: 1.32 + ResizeDlg(UINT id, CWnd *parent = NULL); 1.33 + 1.34 + void *AddDialogData(); 1.35 + BOOL SetData(const DialogSizerSizingItem *psd, 1.36 + BOOL bShowSizingGrip, 1.37 + HKEY hkRootSave, 1.38 + LPCTSTR pcszName, 1.39 + SIZE *psizeMax); 1.40 + void UpdateWindowSize(const int cx, const int cy, HWND); 1.41 + 1.42 + virtual BOOL OnWndMsg(UINT, WPARAM, LPARAM, LRESULT *); 1.43 +private: 1.44 + void *dd; 1.45 +}; 1.46 + 1.47 +#endif