Changeset 21916 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/user32/win32dlg.cpp
r10545 r21916 17 17 #include <string.h> 18 18 #include <misc.h> 19 #include <win32dlg.h>20 #include <win \winproc.h>19 #include "win32dlg.h" 20 #include <win/winproc.h> 21 21 #include "oslibmsg.h" 22 22 #include "oslibwin.h" … … 202 202 203 203 //Mask away WS_CAPTION style for dialogs with DS_CONTROL style 204 //(necessary for OFN_ENABLETEMPLATE file open dialogs) 204 //(necessary for OFN_ENABLETEMPLATE file open dialogs) 205 205 //(verified this behaviour in NT4, SP6) 206 206 if (dlgInfo.style & DS_CONTROL) cs.style &= ~(WS_CAPTION); … … 229 229 if (hMenu) DestroyMenu( hMenu ); 230 230 231 WINPROC_FreeProc( Win32DlgProc, WIN_PROC_WINDOW);231 WINPROC_FreeProc((HWINDOWPROC)Win32DlgProc, WIN_PROC_WINDOW); 232 232 } 233 233 //****************************************************************************** … … 265 265 266 266 HWND hwndPreInitFocus = GetFocus(); 267 if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param)) 267 if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param)) 268 268 { 269 269 //SvL: Experiments in NT4 show that dialogs that are children don't 270 270 // receive focus. Not sure if this is always true. (couldn't 271 271 // find any remarks about this in the SDK docs) 272 if(!(getStyle() & WS_CHILD)) 272 if(!(getStyle() & WS_CHILD)) 273 273 { 274 274 /* check where the focus is again, … … 285 285 // receive focus. Not sure if this is always true. (couldn't 286 286 // find any remarks about this in the SDK docs) 287 if(!(getStyle() & WS_CHILD)) 287 if(!(getStyle() & WS_CHILD)) 288 288 { 289 289 /* If the dlgproc has returned FALSE (indicating handling of keyboard focus) … … 379 379 HOOK_CallHooksA( WH_MSGFILTER, MSGF_DIALOGBOX, 0, 380 380 (LPARAM) pmsg )); 381 381 382 382 HeapFree( GetProcessHeap(), 0, pmsg ); 383 383 if (ret) … … 1163 1163 1164 1164 /* unblock dialog loop */ 1165 PostMessageA(hwnd, WM_NULL, 0, 0); 1165 PostMessageA(hwnd, WM_NULL, 0, 0); 1166 1166 return TRUE; 1167 1167 } … … 1185 1185 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A; 1186 1186 } 1187 oldval = (LONG)WINPROC_GetProc( Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);1187 oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1188 1188 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, type, WIN_PROC_WINDOW); 1189 1189 return oldval; … … 1209 1209 { 1210 1210 case DWL_DLGPROC: 1211 return (ULONG)WINPROC_GetProc( Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);1211 return (ULONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1212 1212 case DWL_MSGRESULT: 1213 1213 return msgResult;
Note:
See TracChangeset
for help on using the changeset viewer.