Changeset 21720 for branches/gcc-kmk/src/user32/win32dlg.cpp
- Timestamp:
- Oct 19, 2011, 11:26:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/gcc-kmk/src/user32/win32dlg.cpp ¶
r10545 r21720 18 18 #include <misc.h> 19 19 #include <win32dlg.h> 20 #include <win \winproc.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); … … 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 }
Note:
See TracChangeset
for help on using the changeset viewer.