Ignore:
Timestamp:
Sep 4, 1999, 7:56:41 PM (26 years ago)
Author:
dengert
Message:

begin DAXifying windows

File:
1 edited

Legend:

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

    r808 r819  
    1 /* $Id: win32wbase.h,v 1.3 1999-09-03 15:09:45 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.4 1999-09-04 17:56:41 dengert Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    1717
    1818#include <win32class.h>
     19#include "open32wbase.h"
    1920#include <gen_object.h>
    2021#include <win32wndchild.h>
     
    3132#define CheckMagicDword(a)      (a==WIN32PM_MAGIC)
    3233
    33 #define WIN32APP_USERMSGBASE            0x1000
     34#define WIN32APP_USERMSGBASE            0x1000
    3435
    3536typedef struct {
     
    110111         PRECT  getWindowRect()                 { return &rectWindow; };
    111112         void   setClientRect(LONG left, LONG top, LONG right, LONG bottom)
    112          { 
    113                 rectClient.left  = left;  rectClient.top    = top;
    114                 rectClient.right = right; rectClient.bottom = bottom;
    115         };
    116         void   setWindowRect(LONG left, LONG top, LONG right, LONG bottom)
    117          {
    118                 rectWindow.left  = left;  rectWindow.top    = top;
    119                 rectWindow.right = right; rectWindow.bottom = bottom;
    120         };
     113         {
     114                rectClient.left  = left;  rectClient.top    = top;
     115                rectClient.right = right; rectClient.bottom = bottom;
     116        };
     117        void   setWindowRect(LONG left, LONG top, LONG right, LONG bottom)
     118         {
     119                rectWindow.left  = left;  rectWindow.top    = top;
     120                rectWindow.right = right; rectWindow.bottom = bottom;
     121        };
    121122         void   setWindowRect(PRECT rect)       { rectWindow = *rect; };
    122123
     
    158159          BOOL  hasWindowName(LPSTR wndname, BOOL fUnicode = 0);
    159160Win32WndClass  *getClass()  { return windowClass; };
    160         char   *getWindowNameA()              { return windowNameA; };
     161        char   *getWindowNameA()              { return windowNameA; };
    161162Win32BaseWindow *getOwner()                   { return owner; };
    162163
     
    175176    static HWND Win32ToOS2Handle(HWND hwnd)
    176177    {
    177         Win32BaseWindow *window = GetWindowFromHandle(hwnd);
    178 
    179         if(window) {
    180                 return window->getOS2WindowHandle();
    181         }
    182         else  return hwnd;    //OS/2 window handle
     178        Win32BaseWindow *window = GetWindowFromHandle(hwnd);
     179
     180        if(window) {
     181                return window->getOS2WindowHandle();
     182        }
     183        else  return hwnd;    //OS/2 window handle
    183184    }
    184185
    185186    static HWND OS2ToWin32Handle(HWND hwnd)
    186187    {
    187         Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd);
    188 
    189         if(window) {
    190                 return window->getWindowHandle();
    191         }
    192         else  return hwnd;    //OS/2 window handle
     188        Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd);
     189
     190        if(window) {
     191                return window->getWindowHandle();
     192        }
     193        else  return hwnd;    //OS/2 window handle
    193194    }
    194195
     
    265266     }
    266267#endif
     268
     269public:
     270       void SetFakeOpen32()    { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
     271       void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
     272
     273  fakeOpen32WinBaseClass fakeWinBase;
    267274};
    268275
Note: See TracChangeset for help on using the changeset viewer.