Changeset 1333 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Oct 17, 1999, 2:17:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r1320 r1333 1 /* $Id: win32dlg.cpp,v 1.1 5 1999-10-16 11:05:38 sandervlExp $ */1 /* $Id: win32dlg.cpp,v 1.16 1999-10-17 12:17:44 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 261 261 ShowWindow( SW_SHOW ); 262 262 263 //CB: 100% CPU usage, need a better solution with OSLibWinGetMsg 264 // is WM_ENTERIDLE used and leaving away breaks an application? 265 // this style was useful for Win3.1 but today there are threads 266 // solution: send only few WM_ENTERIDLE messages 267 268 #if 1 269 while (TRUE) 270 { 271 if (!OSLibWinPeekMsg(&msg,0,0,0,MSG_NOREMOVE)) 272 { 273 if(!(getStyle() & DS_NOIDLEMSG)) 274 topOwner->SendMessageA(WM_ENTERIDLE,MSGF_DIALOGBOX,getWindowHandle()); 275 OSLibWinGetMsg(&msg,0,0,0); 276 } else OSLibWinPeekMsg(&msg,0,0,0,MSG_REMOVE); 277 278 if(msg.message == WM_QUIT) 279 { 280 dprintf(("Win32Dialog::doDialogBox: received WM_QUIT")); 281 break; 282 } 283 if (!IsDialogMessageA( getWindowHandle(), &msg)) 284 { 285 TranslateMessage( &msg ); 286 DispatchMessageA( &msg ); 287 } 288 if (dialogFlags & DF_END) break; 289 } 290 #else 263 291 while (TRUE) { 264 292 // while (OSLibWinPeekMsg(&msg, getWindowHandle(), owner, MSGF_DIALOGBOX, … … 284 312 } 285 313 } 314 #endif 286 315 topOwner->EnableWindow( TRUE ); 287 316 }
Note:
See TracChangeset
for help on using the changeset viewer.