- Timestamp:
- Oct 28, 2001, 4:24:16 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windlg.cpp
r7095 r7248 1 /* $Id: windlg.cpp,v 1.2 7 2001-10-17 14:30:10sandervl Exp $ */1 /* $Id: windlg.cpp,v 1.28 2001-10-28 15:24:16 sandervl Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 25 25 #include <heapstring.h> 26 26 #include <win\drive.h> 27 #include <custombuild.h> 27 28 28 29 #define DBG_LOCALLOG DBG_windlg … … 63 64 return CreateDialogIndirectParamW(hInst, (LPCDLGTEMPLATEW)LoadResource(hInst, hrsrc), 64 65 hwndOwner, dlgproc, lParamInit); 66 } 67 //****************************************************************************** 68 //This function can be used by a custom Odin build to register a hook procedure 69 //that gets called before or after dialog creation 70 //****************************************************************************** 71 static HOOKPROC pfnDialogHook = NULL; 72 //****************************************************************************** 73 BOOL WIN32API SetDialogHook(HOOKPROC pfnDialogProc) 74 { 75 dprintf(("SetDialogHook %x", pfnDialogProc)); 76 pfnDialogHook = pfnDialogProc; 77 return TRUE; 78 } 79 //****************************************************************************** 80 //****************************************************************************** 81 BOOL WIN32API ClearDialogHook() 82 { 83 pfnDialogHook = NULL; 84 return TRUE; 65 85 } 66 86 //****************************************************************************** … … 92 112 } 93 113 HWND hwnd = dialog->getWindowHandle(); 114 115 if(pfnDialogHook) { 116 dprintf(("Calling Dialog hook for dialog %x", hwnd)); 117 pfnDialogHook(HCUSTOM_POSTDIALOGCREATION, hwnd, 0); 118 } 119 94 120 RELEASE_WNDOBJ(dialog); 95 121 return hwnd; … … 123 149 } 124 150 HWND hwnd = dialog->getWindowHandle(); 151 152 if(pfnDialogHook) { 153 dprintf(("Calling Dialog hook for dialog %x", hwnd)); 154 pfnDialogHook(HCUSTOM_POSTDIALOGCREATION, hwnd, 0); 155 } 156 125 157 RELEASE_WNDOBJ(dialog); 126 158 return hwnd; -
trunk/src/user32/window.cpp
r7183 r7248 1 /* $Id: window.cpp,v 1.11 2 2001-10-24 10:26:46 sandervl Exp $ */1 /* $Id: window.cpp,v 1.113 2001-10-28 15:24:16 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 192 192 #ifdef DEBUG 193 193 if(HIWORD(className)) { 194 dprintf(("CreateWindowExW: class %ls name %ls parent %x (%d,%d) (%d,%d), %x %x ", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle));195 } 196 else dprintf(("CreateWindowExW: class %d name %ls parent %x (%d,%d) (%d,%d), %x %x ", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle));194 dprintf(("CreateWindowExW: class %ls name %ls parent %x (%d,%d) (%d,%d), %x %x menu=%x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle, menu)); 195 } 196 else dprintf(("CreateWindowExW: class %d name %ls parent %x (%d,%d) (%d,%d), %x %x menu=%x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle, menu)); 197 197 #endif 198 198 if (!HIWORD(className))
Note:
See TracChangeset
for help on using the changeset viewer.