view src/win32/ResizeDlg.h @ 8:08a8e09ca414

add files required by automake
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:54:39 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_WIN32_RESIZEDLG_H
2 #define VBA_WIN32_RESIZEDLG_H
4 #ifndef _INC_TCHAR
5 #include <tchar.h>
6 #endif // _INC_TCHAR
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
15 typedef struct DialogSizerSizingItem // sdi
16 {
17 UINT uControlID;
18 UINT uSizeInfo;
19 } DialogSizerSizingItem;
21 #define DIALOG_SIZER_START(name) DialogSizerSizingItem name[] = {
22 #define DIALOG_SIZER_ENTRY(controlID, flags) { controlID, flags },
23 #define DIALOG_SIZER_END() { 0xFFFFFFFF, 0xFFFFFFFF } };
25 class ResizeDlg : public CDialog
26 {
27 DECLARE_DYNAMIC(ResizeDlg) // what will this do?
28 public:
29 ResizeDlg(UINT id, CWnd *parent = NULL);
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);
39 virtual BOOL OnWndMsg(UINT, WPARAM, LPARAM, LRESULT *);
40 private:
41 void *dd;
42 };
44 #endif