Changeset 2084 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Dec 16, 1999, 1:11:49 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r2033 r2084 1 /* $Id: win32dlg.cpp,v 1.3 6 1999-12-09 00:53:37sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.37 1999-12-16 00:11:46 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 217 217 218 218 if (hUserFont) 219 Send MessageA(WM_SETFONT, (WPARAM)hUserFont, 0 );219 SendInternalMessageA(WM_SETFONT, (WPARAM)hUserFont, 0 ); 220 220 221 221 /* Create controls */ … … 226 226 hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE ); 227 227 228 if (Send MessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param))228 if (SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) 229 229 SetFocus(hwndFocus); 230 230 … … 262 262 /* Owner must be a top-level window */ 263 263 if(getOwner() == NULL) { 264 topOwner = windowDesktop;264 topOwner = windowDesktop; 265 265 } 266 266 else topOwner = getOwner()->GetTopParent(); … … 295 295 if (!OSLibWinPeekMsg(&msg,0,0,0,MSG_NOREMOVE)) 296 296 { 297 if(!(getStyle() & DS_NOIDLEMSG)) 298 topOwner->SendMessageA(WM_ENTERIDLE,MSGF_DIALOGBOX,getWindowHandle()); 299 OSLibWinGetMsg(&msg,0,0,0); 300 } else OSLibWinPeekMsg(&msg,0,0,0,MSG_REMOVE); 297 if(!(getStyle() & DS_NOIDLEMSG)) 298 topOwner->SendMessageA(WM_ENTERIDLE,MSGF_DIALOGBOX,getWindowHandle()); 299 OSLibWinGetMsg(&msg,0,0,0); 300 } 301 else OSLibWinPeekMsg(&msg,0,0,0,MSG_REMOVE); 301 302 302 303 if(msg.message == WM_QUIT) 303 304 { 304 dprintf(("Win32Dialog::doDialogBox: received WM_QUIT"));305 break;305 dprintf(("Win32Dialog::doDialogBox: received WM_QUIT")); 306 break; 306 307 } 307 308 if (!IsDialogMessageA( getWindowHandle(), &msg)) 308 309 { 309 TranslateMessage( &msg );310 DispatchMessageA( &msg );310 TranslateMessage( &msg ); 311 DispatchMessageA( &msg ); 311 312 } 312 if (dialogFlags & DF_END) break; 313 if (dialogFlags & DF_END) 314 break; 313 315 } 314 316 #else … … 332 334 else { 333 335 if(!(getStyle() & DS_NOIDLEMSG)) { 334 topOwner->Send MessageA(WM_ENTERIDLE, MSGF_DIALOGBOX, getWindowHandle());336 topOwner->SendInternalMessageA(WM_ENTERIDLE, MSGF_DIALOGBOX, getWindowHandle()); 335 337 } 336 338 } … … 1030 1032 { 1031 1033 case DWL_DLGPROC: 1032 1034 oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1033 1035 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 1034 1036 return oldval; … … 1053 1055 { 1054 1056 case DWL_DLGPROC: 1055 1057 return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1056 1058 case DWL_MSGRESULT: 1057 1059 return msgResult;
Note:
See TracChangeset
for help on using the changeset viewer.