Ignore:
Timestamp:
Oct 17, 1999, 2:17:46 PM (26 years ago)
Author:
cbratschi
Message:

added WINE scrollbars to frame, fixed pmframe, WM_ENTERIDLE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32dlg.cpp

    r1320 r1333  
    1 /* $Id: win32dlg.cpp,v 1.15 1999-10-16 11:05:38 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.16 1999-10-17 12:17:44 cbratschi Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    261261        ShowWindow( SW_SHOW );
    262262
     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
    263291        while (TRUE) {
    264292//        while (OSLibWinPeekMsg(&msg, getWindowHandle(), owner, MSGF_DIALOGBOX,
     
    284312            }
    285313        }
     314#endif
    286315        topOwner->EnableWindow( TRUE );
    287316    }
Note: See TracChangeset for help on using the changeset viewer.