annotate src/win32/ResizeDlg.h @ 7:c0a590a394c3

ignore generated files
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:50:33 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef VBA_WIN32_RESIZEDLG_H
rlm@1 2 #define VBA_WIN32_RESIZEDLG_H
rlm@1 3
rlm@1 4 #ifndef _INC_TCHAR
rlm@1 5 #include <tchar.h>
rlm@1 6 #endif // _INC_TCHAR
rlm@1 7
rlm@1 8 //
rlm@1 9 // Predefined sizing information
rlm@1 10 #define DS_MoveX 1
rlm@1 11 #define DS_MoveY 2
rlm@1 12 #define DS_SizeX 4
rlm@1 13 #define DS_SizeY 8
rlm@1 14
rlm@1 15 typedef struct DialogSizerSizingItem // sdi
rlm@1 16 {
rlm@1 17 UINT uControlID;
rlm@1 18 UINT uSizeInfo;
rlm@1 19 } DialogSizerSizingItem;
rlm@1 20
rlm@1 21 #define DIALOG_SIZER_START(name) DialogSizerSizingItem name[] = {
rlm@1 22 #define DIALOG_SIZER_ENTRY(controlID, flags) { controlID, flags },
rlm@1 23 #define DIALOG_SIZER_END() { 0xFFFFFFFF, 0xFFFFFFFF } };
rlm@1 24
rlm@1 25 class ResizeDlg : public CDialog
rlm@1 26 {
rlm@1 27 DECLARE_DYNAMIC(ResizeDlg) // what will this do?
rlm@1 28 public:
rlm@1 29 ResizeDlg(UINT id, CWnd *parent = NULL);
rlm@1 30
rlm@1 31 void *AddDialogData();
rlm@1 32 BOOL SetData(const DialogSizerSizingItem *psd,
rlm@1 33 BOOL bShowSizingGrip,
rlm@1 34 HKEY hkRootSave,
rlm@1 35 LPCTSTR pcszName,
rlm@1 36 SIZE *psizeMax);
rlm@1 37 void UpdateWindowSize(const int cx, const int cy, HWND);
rlm@1 38
rlm@1 39 virtual BOOL OnWndMsg(UINT, WPARAM, LPARAM, LRESULT *);
rlm@1 40 private:
rlm@1 41 void *dd;
rlm@1 42 };
rlm@1 43
rlm@1 44 #endif