Ignore:
Timestamp:
Sep 9, 1999, 8:08:46 PM (26 years ago)
Author:
dengert
Message:

new DC related code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wbase.h

    r836 r896  
    1 /* $Id: win32wbase.h,v 1.9 1999-09-05 15:59:37 dengert Exp $ */
     1/* $Id: win32wbase.h,v 1.10 1999-09-09 18:08:19 dengert Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    2121#include <win32wndchild.h>
    2222#include <winres.h>
     23#include <winconst.h>
    2324
    2425class Win32BaseWindow;
     
    106107         void   setWindowId(DWORD id)           { windowId = id; };
    107108         ULONG  getWindowHeight()               { return rectClient.bottom - rectClient.top; };
     109         ULONG  getWindowWidth()                { return rectClient.right - rectClient.left; };
    108110         BOOL   isChild();
    109111         PRECT  getClientRect()                 { return &rectClient; };
     
    121123         };
    122124         void   setWindowRect(PRECT rect)       { rectWindow = *rect; };
    123 
    124125         DWORD  getFlags()                      { return flags; };
    125126         void   setFlags(DWORD newflags)        { flags = newflags; };
     
    276277
    277278public:
    278        void SetFakeOpen32()    { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
    279        void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
    280 
    281        fakeOpen32WinBaseClass fakeWinBase;
     279         void SetFakeOpen32()    { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
     280         void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
     281
     282         fakeOpen32WinBaseClass fakeWinBase;
     283
     284         BOOL   isOwnDC() { return (windowClass->getStyle() & CS_OWNDC_W); }
     285         HDC    getOwnDC() { return ownDC; }
     286         void   setOwnDC(HDC hdc) { ownDC = hdc; }
     287protected:
     288         HDC    ownDC;
    282289};
    283290
Note: See TracChangeset for help on using the changeset viewer.