Ignore:
Timestamp:
Jan 9, 2000, 3:38:30 PM (26 years ago)
Author:
sandervl
Message:

Several updates/bug fixes

File:
1 edited

Legend:

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

    r2371 r2383  
    1 /* $Id: win32wbase.h,v 1.67 2000-01-08 14:15:09 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.68 2000-01-09 14:37:12 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    8484         ULONG  MsgEraseBackGround(HDC hdc);
    8585         ULONG  MsgInitMenu(MSG *msg);
    86          ULONG  MsgHitTest(MSG *msg);
     86         ULONG  MsgHitTest(ULONG x, ULONG y);
    8787         ULONG  MsgNCPaint();
    8888         ULONG  DispatchMsgA(MSG *msg);
     
    110110         HWND   getOS2FrameWindowHandle()       { return OS2HwndFrame; };
    111111 Win32WndClass *getWindowClass()                { return windowClass; };
    112 
    113          BOOL   getIgnoreHitTest()              { return fIgnoreHitTest; }
    114          VOID   setIgnoreHitTest(BOOL ignore)   { fIgnoreHitTest = ignore; }
    115112
    116113         BOOL   getDefWndProcCalled()           { return fDefWndProcCalled; };
     
    139136         PRECT  getClientRect()                 { return &rectClient; };
    140137         void   setClientRect(PRECT rect)       { rectClient = *rect; };
    141          PRECT  getWindowRect()                 { return &rectWindow; };
    142138         void   setClientRect(LONG left, LONG top, LONG right, LONG bottom)
    143139         {
     
    145141                rectClient.right = right; rectClient.bottom = bottom;
    146142         };
    147          void   setWindowRect(LONG left, LONG top, LONG right, LONG bottom)
    148          {
    149                 rectWindow.left  = left;  rectWindow.top    = top;
    150                 rectWindow.right = right; rectWindow.bottom = bottom;
    151          };
    152          void   setWindowRect(PRECT rect)       { rectWindow = *rect; };
     143         PRECT  getWindowRect();
     144         void   setWindowRect(LONG left, LONG top, LONG right, LONG bottom);
     145         void   setWindowRect(PRECT rect);
     146         void   setWindowRectChanged();
     147
    153148         DWORD  getFlags()                      { return flags; };
    154149         void   setFlags(DWORD newflags)        { flags = newflags; };
     
    196191         BOOL   IsWindowUnicode();
    197192
    198          BOOL   GetWindowRect(PRECT pRect);
    199193         int    GetWindowTextLength();
    200194         int    GetWindowTextA(LPSTR lpsz, int cch);
     
    304298        DWORD   contextHelpId;
    305299        LONG    lastHitTestVal;         //Last value returned by WM_NCHITTEST handler
    306         BOOL    fIgnoreHitTest;         //Use WinWindowFromPoint during WM_HITTEST
    307 
    308         BOOL    isIcon;
    309         BOOL    fFirstShow;
    310         BOOL    fIsDialog;
    311         BOOL    fIsModalDialog;
    312         BOOL    fIsModalDialogOwner;
     300
    313301        HWND    OS2HwndModalDialog;
    314         BOOL    fInternalMsg;           //Used to distinguish between messages
    315                                         //sent by PM and those sent by apps
    316         BOOL    fNoSizeMsg;
    317         BOOL    fIsDestroyed;
    318         BOOL    fDestroyWindowCalled;   //DestroyWindow was called for this window
    319         BOOL    fCreated;
    320         BOOL    fTaskList;              //should be listed in PM tasklist or not
    321         BOOL    fParentDC;
    322 
    323         BOOL    fDefWndProcCalled;      //set when DefWndProc called; used in PM window handlers to determine what to do next
     302
     303        ULONG   isIcon               :1,
     304                fFirstShow           :1,
     305                fIsDialog            :1,
     306                fIsModalDialog       :1,
     307                fIsModalDialogOwner  :1,
     308                fInternalMsg         :1, //Used to distinguish between messages
     309                                         //sent by PM and those sent by apps
     310                fNoSizeMsg           :1,
     311                fIsDestroyed         :1,
     312                fDestroyWindowCalled :1, //DestroyWindow was called for this window
     313                fCreated             :1,
     314                fTaskList            :1, //should be listed in PM tasklist or not
     315                fParentDC            :1,
     316                fIsSubclassedOS2Wnd  :1, //subclassed OS/2 window: Netscape plug-in/scrollbar
     317                fDefWndProcCalled    :1, //set when DefWndProc called; used in PM window handlers to determine what to do next
     318                fWindowRectChanged   :1; //Set when parent window has been moved; cleared when window rect is updated
    324319
    325320        HRGN    hWindowRegion;
     
    334329
    335330        PVOID   pOldWndProc;
    336         BOOL    fIsSubclassedOS2Wnd;  //subclassed OS/2 window: Netscape plug-in/scrollbar
    337331
    338332   Win32BaseWindow *owner;
     
    365359        void  GetMinMaxInfo(POINT *maxSize, POINT *maxPos, POINT *minTrack, POINT *maxTrack );
    366360        LONG  HandleWindowPosChanging(WINDOWPOS *winpos);
    367         LONG  HandleNCLButtonDown(WPARAM wParam,LPARAM lParam);
    368         LONG  HandleNCLButtonUp(WPARAM wParam,LPARAM lParam);
    369         LONG  HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam);
    370361        LONG  HandleSysCommand(WPARAM wParam, POINT *pt32);
    371362
     
    386377friend BOOL  OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fTranslateExtraMsgs);
    387378#endif
     379
     380        //painting & non-client methods
     381        BOOL  DrawSysButton(HDC hdc,BOOL down);
     382        BOOL  DrawGrayButton(HDC hdc,int x,int y);
     383        VOID  DrawCloseButton(HDC hdc,BOOL down,BOOL bGrayed);
     384        VOID  DrawMaxButton(HDC hdc,BOOL down,BOOL bGrayed);
     385        VOID  DrawMinButton(HDC hdc,BOOL down,BOOL bGrayed);
     386        VOID  DrawCaption(HDC hdc,RECT *rect,BOOL active);
     387        VOID  DrawFrame(HDC hdc,RECT *rect,BOOL dlgFrame,BOOL active);
     388
     389        VOID  GetInsideRect(RECT *rect);
     390
     391        VOID  TrackMinMaxBox(WORD wParam);
     392        VOID  TrackCloseButton(WORD wParam);
     393
     394        VOID  HandleNCPaint(HRGN clip,BOOL suppress_menupaint);
     395        LONG  HandleNCHitTest(POINT pt);
     396        LONG  HandleNCActivate(WPARAM wParam);
     397        LONG  HandleNCLButtonDown(WPARAM wParam,LPARAM lParam);
     398        LONG  HandleNCLButtonUp(WPARAM wParam,LPARAM lParam);
     399        LONG  HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam);
    388400
    389401public:
Note: See TracChangeset for help on using the changeset viewer.