Mercurial > vba-linux
view src/win32/ResizeDlg.h @ 2:3549bbe597ed
adding makefile.am
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:47 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #ifndef VBA_WIN32_RESIZEDLG_H2 #define VBA_WIN32_RESIZEDLG_H4 #ifndef _INC_TCHAR5 #include <tchar.h>6 #endif // _INC_TCHAR8 //9 // Predefined sizing information10 #define DS_MoveX 111 #define DS_MoveY 212 #define DS_SizeX 413 #define DS_SizeY 815 typedef struct DialogSizerSizingItem // sdi16 {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 CDialog26 {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