Ignore:
Timestamp:
Jun 23, 2000, 9:04:13 PM (25 years ago)
Author:
sandervl
Message:

wsprintf fix, menu accelerator fix

File:
1 edited

Legend:

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

    r3722 r3747  
    1 /* $Id: dc.cpp,v 1.62 2000-06-17 09:45:00 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.63 2000-06-23 19:04:10 sandervl Exp $ */
    22
    33/*
     
    984984}
    985985//******************************************************************************
     986//Helper for RedrawWindow (RDW_ALLCHILDREN_W)
     987//******************************************************************************
     988LRESULT WIN32API RedrawChildEnumProc(HWND hwnd, LPARAM lParam)
     989{
     990  RedrawWindow(hwnd, NULL, 0, lParam);
     991  return TRUE;
     992}
     993//******************************************************************************
    986994// This implementation of RedrawWindow supports
    987995// RDW_ERASE
     
    11451153        if(redraw & RDW_ERASENOW_W && wnd->needsEraseBkgnd())
    11461154                wnd->setEraseBkgnd(sendEraseBkgnd(wnd) == 0);
     1155        if(redraw & RDW_ALLCHILDREN_W) {
     1156                EnumChildWindows(wnd->getWindowHandle(), RedrawChildEnumProc, redraw);
     1157        }
    11471158   }
    11481159   else if((redraw & RDW_INTERNALPAINT_W) && !(redraw & RDW_INVALIDATE_W))
     
    11801191
    11811192   dprintf (("User32: UpdateWindow hwnd %x", hwnd));
    1182 ////SvL: This doesn't work right (Wine uses RDW_NOCHILDREN_W -> doesn't work here)
    1183 ////     Breaks vpbuddy
    1184 ////   return RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW_W | RDW_ALLCHILDREN_W);
     1193//SvL: This doesn't work right (Wine uses RDW_NOCHILDREN_W -> doesn't work here)
     1194//     Breaks vpbuddy
     1195//   return RedrawWindow(hwnd, NULL, 0, RDW_UPDATENOW_W | RDW_ALLCHILDREN_W);
     1196//   -> RDW_UPDATENOW causes WM_PAINT messages to be directy posted to window
     1197//   handler; possibly bypassing queued WM_PAINT messages for parent window(s)
     1198//   -> out of sync painting (i.e. parent paints over child)
    11851199   WinUpdateWindow(wnd->getOS2WindowHandle());
    11861200   return TRUE;
     
    11961210   }
    11971211   else dprintf(("InvalidateRect %x NULL erase=%d", hwnd, erase));
     1212   if(hwnd == 0x6800000f) {
     1213        result = 0;
     1214   }
    11981215   result = RedrawWindow (hwnd, pRect, NULLHANDLE,
    11991216                          RDW_ALLCHILDREN_W | RDW_INVALIDATE_W |
Note: See TracChangeset for help on using the changeset viewer.