Mercurial > vba-clojure
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_WIN32_RESIZEDLG_H | |
2 #define VBA_WIN32_RESIZEDLG_H | |
3 | |
4 #ifndef _INC_TCHAR | |
5 #include <tchar.h> | |
6 #endif // _INC_TCHAR | |
7 | |
8 // | |
9 // Predefined sizing information | |
10 #define DS_MoveX 1 | |
11 #define DS_MoveY 2 | |
12 #define DS_SizeX 4 | |
13 #define DS_SizeY 8 | |
14 | |
15 typedef struct DialogSizerSizingItem // sdi | |
16 { | |
17 UINT uControlID; | |
18 UINT uSizeInfo; | |
19 } DialogSizerSizingItem; | |
20 | |
21 #define DIALOG_SIZER_START(name) DialogSizerSizingItem name[] = { | |
22 #define DIALOG_SIZER_ENTRY(controlID, flags) { controlID, flags }, | |
23 #define DIALOG_SIZER_END() { 0xFFFFFFFF, 0xFFFFFFFF } }; | |
24 | |
25 class ResizeDlg : public CDialog | |
26 { | |
27 DECLARE_DYNAMIC(ResizeDlg) // what will this do? | |
28 public: | |
29 ResizeDlg(UINT id, CWnd *parent = NULL); | |
30 | |
31 void *AddDialogData(); | |
32 BOOL SetData(const DialogSizerSizingItem *psd, | |
33 BOOL bShowSizingGrip, | |
34 HKEY hkRootSave, | |
35 LPCTSTR pcszName, | |
36 SIZE *psizeMax); | |
37 void UpdateWindowSize(const int cx, const int cy, HWND); | |
38 | |
39 virtual BOOL OnWndMsg(UINT, WPARAM, LPARAM, LRESULT *); | |
40 private: | |
41 void *dd; | |
42 }; | |
43 | |
44 #endif |