Ignore:
Timestamp:
Jun 12, 2001, 7:02:42 PM (24 years ago)
Author:
sandervl
Message:

FillRect & CS_CLASSDC fixes; use critical secions for hooks

File:
1 edited

Legend:

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

    r5968 r5973  
    1 /* $Id: win32wbase.cpp,v 1.264 2001-06-11 20:08:24 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.265 2001-06-12 17:02:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    653653    if (windowClass->getStyle() & CS_CLASSDC)  {
    654654        dprintf(("WARNING: Class with CS_CLASSDC style!"));
    655         ownDC = 0;
     655        //not a good solution, but it's a bit difficult to share a single
     656        //DC among different windows... DevOpenDC apparently can't be used
     657        //for window DCs and WinOpenWindowDC must be associated with a window
     658        ownDC = GetDCEx(getWindowHandle(), NULL, DCX_USESTYLE);
    656659    }
    657660    /* Set the window menu */
Note: See TracChangeset for help on using the changeset viewer.