Changeset 821 for trunk/src/user32/new/win32dlg.h
- Timestamp:
- Sep 4, 1999, 9:42:30 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/new/win32dlg.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32dlg.h
r741 r821 1 /* $Id: win32dlg.h,v 1. 3 1999-08-30 11:59:53sandervl Exp $ */1 /* $Id: win32dlg.h,v 1.4 1999-09-04 19:42:29 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 17 17 #ifdef __cplusplus 18 18 19 #define DF_END 0x0001 20 21 /* Dialog control information */ 22 typedef struct 23 { 24 DWORD style; 25 DWORD exStyle; 26 DWORD helpId; 27 INT x; 28 INT y; 29 INT cx; 30 INT cy; 31 UINT id; 32 LPCSTR className; 33 LPCSTR windowName; 34 LPVOID data; 35 } DLG_CONTROL_INFO; 36 37 /* Dialog template */ 38 typedef struct 39 { 40 DWORD style; 41 DWORD exStyle; 42 DWORD helpId; 43 UINT nbItems; 44 INT x; 45 INT y; 46 INT cx; 47 INT cy; 48 LPCSTR menuName; 49 LPCSTR className; 50 LPCSTR caption; 51 WORD pointSize; 52 WORD weight; 53 BOOL italic; 54 LPCSTR faceName; 55 BOOL dialogEx; 56 } DLG_TEMPLATE; 57 19 58 class Win32Dialog : public Win32BaseWindow 20 59 { 21 60 public: 22 Win32Dialog(); 61 Win32Dialog(HINSTANCE hInst, LPCSTR dlgTemplate, HWND owner, 62 DLGPROC dlgProc, LPARAM param, BOOL isUnicode); 63 23 64 virtual ~Win32Dialog(); 65 66 LRESULT DefDlgProcA(UINT Msg, WPARAM wParam, LPARAM lParam); 67 LRESULT DefDlgProcW(UINT Msg, WPARAM wParam, LPARAM lParam); 68 69 LRESULT DefDlg_Epilog(UINT msg, BOOL fResult); 24 70 25 71 virtual ULONG MsgOS2Create(HWND hwndOS2, ULONG initParam); … … 29 75 30 76 protected: 77 BOOL DIALOG_Init(void); 78 BOOL getCharSizeFromDC( HDC hDC, HFONT hFont, SIZE * pSize ); 79 BOOL getCharSize( HFONT hFont, SIZE * pSize); 80 LPCSTR parseTemplate( LPCSTR dlgtemplate, DLG_TEMPLATE *result); 81 WORD *getControl(const WORD *p, DLG_CONTROL_INFO *info, BOOL dialogEx); 82 BOOL createControls(LPCSTR dlgtemplate, HINSTANCE hInst); 83 84 LRESULT DefDlg_Proc(UINT msg, WPARAM wParam, LPARAM lParam); 85 BOOL setDefButton(HWND hwndNew ); 86 HWND findDefButton(); 87 BOOL saveFocus(); 88 BOOL restoreFocus(); 89 void setFocus(HWND hwndCtrl ); 90 31 91 // values normally contained in the standard dialog words 32 92 DLGPROC Win32DlgProc; //DWL_WNDPROC … … 34 94 ULONG userDlgData; //DWL_USER 35 95 96 DLG_TEMPLATE dlgInfo; 97 WORD xUnit; 98 WORD yUnit; 99 HWND hwndFocus; 100 HFONT hUserFont; 101 HMENU hMenu; 102 DWORD idResult; 103 DWORD dialogFlags; 104 36 105 private: 106 static BOOL fInitialized; 107 static int xBaseUnit; 108 static int yBaseUnit; 37 109 }; 38 110 111 /* Built-in class names (see _Undocumented_Windows_ p.418) */ 112 #define DIALOG_CLASS_NAME "#32770" /* Dialog */ 113 #define DIALOG_CLASS_ATOM 32770 /* Dialog */ 114 115 BOOL DIALOG_Register(); 116 BOOL DIALOG_Unregister(); 39 117 40 118 #endif //__cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.
