Ignore:
Timestamp:
May 11, 2001, 10:39:46 AM (24 years ago)
Author:
sandervl
Message:

client/frame rewrite

File:
1 edited

Legend:

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

    r5606 r5685  
    1 /* $Id: win32wbase.h,v 1.115 2001-04-27 17:36:39 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.116 2001-05-11 08:39:45 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    134134         ULONG  MsgPaint(ULONG tmp1, BOOL select = TRUE);
    135135         ULONG  MsgEraseBackGround(HDC hdc);
    136 #ifndef ODIN_HITTEST
    137          ULONG  MsgHitTest(MSG *msg);
    138 #endif
    139          ULONG  MsgNCPaint();
     136         ULONG  MsgNCPaint(PRECT pUpdateRect);
    140137         ULONG  MsgFormatFrame(WINDOWPOS *lpWndPos);
    141138         ULONG  DispatchMsgA(MSG *msg);
     
    160157         HWND   getWindowHandle()               { return Win32Hwnd; };
    161158         HWND   getOS2WindowHandle()            { return OS2Hwnd; };
     159         HWND   getOS2FrameWindowHandle()       { return OS2HwndFrame; };
    162160
    163161 Win32WndClass *getWindowClass()                { return windowClass; };
     
    260258         BOOL   IsMixMaxStateChanging()       { return fMinMaxChange; };
    261259
     260         void   SetVisibleRegionChanged(BOOL changed) { fVisibleRegionChanged = changed; };
     261         BOOL   IsVisibleRegionChanged()              { return fVisibleRegionChanged; };
     262
    262263         int    GetWindowTextLength(BOOL fUnicode);
    263264         int    GetWindowTextLengthA() { return GetWindowTextLength(FALSE); };
     
    317318static Win32BaseWindow *GetWindowFromHandle(HWND hwnd);
    318319static Win32BaseWindow *GetWindowFromOS2Handle(HWND hwnd);
     320static Win32BaseWindow *GetWindowFromOS2FrameHandle(HWND hwnd);
    319321
    320322    static void DestroyAll();
     
    334336    PROPERTY   *findWindowProperty(LPCSTR str);
    335337
    336         HWND    OS2Hwnd;
     338        HWND    OS2Hwnd, OS2HwndFrame;
    337339        HMENU   hSysMenu;
    338340        HWND    Win32Hwnd;
     
    358360        HWND    OS2HwndModalDialog;
    359361
    360         unsigned fFirstShow:1;
    361         unsigned fIsDialog:1;
    362         unsigned fIsModalDialog:1;
    363         unsigned fIsModalDialogOwner:1;
    364         unsigned fInternalMsg:1;         //Used to distinguish between messages
     362        ULONG    fFirstShow:1,
     363                 fIsDialog:1,
     364                 fIsModalDialog:1,
     365                 fIsModalDialogOwner:1,
     366                 fInternalMsg:1,         //Used to distinguish between messages
    365367                                         //sent by PM and those sent by apps
    366         unsigned fNoSizeMsg:1;
    367         unsigned fIsDestroyed:1;
    368         unsigned fDestroyWindowCalled:1; //DestroyWindow was called for this window
    369         unsigned fCreated:1;
    370         unsigned fCreationFinished:1;    //True when window or dialog has been created successfully
     368                 fNoSizeMsg:1,
     369                 fIsDestroyed:1,
     370                 fDestroyWindowCalled:1, //DestroyWindow was called for this window
     371                 fCreated:1,
     372                 fCreationFinished:1,    //True when window or dialog has been created successfully
    371373                                         //Needed to prevent DestroyWindow from deleting the window
    372374                                         //object during construction
    373         unsigned fTaskList:1;            //should be listed in PM tasklist or not
    374         unsigned fXDefault:1;
    375         unsigned fCXDefault:1;
    376         unsigned fParentDC:1;
    377         unsigned fComingToTop:1;
    378         unsigned fCreateSetWindowPos:1;  //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called
    379         unsigned isUnicode:1;
    380         unsigned fMinMaxChange:1;        //set when switching between min/max/restored state
    381         unsigned fOwnDCDirty:1;          //set when selectClientArea must reset the origin + visible region
     375                 fTaskList:1,            //should be listed in PM tasklist or not
     376                 fXDefault:1,
     377                 fCXDefault:1,
     378                 fParentDC:1,
     379                 fComingToTop:1,
     380                 fCreateSetWindowPos:1,  //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called
     381                 isUnicode:1,
     382                 fMinMaxChange:1,        //set when switching between min/max/restored state
     383                 fVisibleRegionChanged:1, //set when visible region has changed -> erase background must be sent during next BeginPaint
     384                 fEraseBkgndFlag:1;
    382385
    383386        HRGN    hWindowRegion;
     
    469472         BOOL   isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); }
    470473#endif
    471          void   invalidateOwnDC() { fOwnDCDirty = TRUE; };
    472          void   validateOwnDC()   { fOwnDCDirty = FALSE; };
    473          BOOL   isOwnDCDirty()    { return fOwnDCDirty; };
    474474
    475475         HDC    getOwnDC() { return ownDC; }
     
    478478         HDC    ownDC;
    479479
    480          ULONG  EraseBkgndFlag:1,
    481                 filler:31;
    482480public:
    483          VOID   setEraseBkgnd (BOOL erase)      { EraseBkgndFlag = erase; }
    484          BOOL   needsEraseBkgnd()               { return EraseBkgndFlag; }
     481         VOID   setEraseBkgnd (BOOL erase)      { fEraseBkgndFlag = erase; }
     482         BOOL   needsEraseBkgnd()               { return fEraseBkgndFlag; }
    485483};
    486484
Note: See TracChangeset for help on using the changeset viewer.