Ignore:
Timestamp:
Jan 12, 2002, 3:09:54 PM (24 years ago)
Author:
sandervl
Message:

CreateFakeWindowEx changes + added DestroyFakeWindow

File:
1 edited

Legend:

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

    r7762 r7765  
    1 /* $Id: win32wbase.cpp,v 1.310 2002-01-12 09:55:51 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.311 2002-01-12 14:09:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    111111                     : GenericObject(&windows, &critsect), ChildWindow(&critsect)
    112112{
    113   Init();
     113    Init();
    114114}
    115115//******************************************************************************
     
    143143    dwOldStyle = dwStyle;
    144144    dwExStyle  = 0;
     145
     146    //We pretend this window has no parent and won't change size
     147    //(dangerous assumption!!)
     148    OSLibWinQueryWindowClientRect(OS2Hwnd, &rectClient);
     149    rectWindow = rectClient;
     150
     151    fFakeWindow = TRUE;
    145152}
    146153//******************************************************************************
     
    149156                     : GenericObject(&windows, &critsect), ChildWindow(&critsect)
    150157{
    151   Init();
    152   this->isUnicode = isUnicode;
    153   CreateWindowExA(lpCreateStructA, classAtom);
     158    Init();
     159    this->isUnicode = isUnicode;
     160    CreateWindowExA(lpCreateStructA, classAtom);
    154161}
    155162//******************************************************************************
     
    171178  fVisibleRegionChanged = FALSE;
    172179  fEraseBkgndFlag  = TRUE;
     180  fFakeWindow      = FALSE;
    173181
    174182  state            = STATE_INIT;
     
    315323    if(owner && !fDestroyAll) {
    316324        RELEASE_WNDOBJ(owner);
    317     }
    318     if(windowClass) {
    319         RELEASE_CLASSOBJ(windowClass);
    320325    }
    321326}
Note: See TracChangeset for help on using the changeset viewer.