Changeset 7762 for trunk/src


Ignore:
Timestamp:
Jan 12, 2002, 10:58:36 AM (24 years ago)
Author:
sandervl
Message:

CreateFakeWindowEx change

Location:
trunk/src/user32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r6902 r7762  
    1 ; $Id: USER32.DEF,v 1.67 2001-09-30 22:24:40 sandervl Exp $
     1; $Id: USER32.DEF,v 1.68 2002-01-12 09:55:51 sandervl Exp $
    22
    33LIBRARY USER32 INITINSTANCE TERMINSTANCE
     
    697697    _IsSystemPen@4                                               @2027 NONAME
    698698
    699     _CreateFakeWindowEx@4                                        @2028 NONAME
     699    _CreateFakeWindowEx@8                                        @2028 NONAME
    700700    _checkOrigin@4                                               @2029 NONAME
    701701
  • trunk/src/user32/win32wbase.cpp

    r7734 r7762  
    1 /* $Id: win32wbase.cpp,v 1.309 2002-01-07 11:18:10 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.310 2002-01-12 09:55:51 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
    44 *
    5  * Copyright 1998-2001 Sander van Leeuwen (sandervl@xs4all.nl)
     5 * Copyright 1998-2002 Sander van Leeuwen (sandervl@xs4all.nl)
    66 * Copyright 1999      Daniela Engert (dani@ngrt.de)
    77 * Copyright 1999-2000 Christoph Bratschi (cbratschi@datacomm.ch)
     
    115115//******************************************************************************
    116116//******************************************************************************
    117 Win32BaseWindow::Win32BaseWindow(HWND hwndOS2, ULONG reserved)
     117Win32BaseWindow::Win32BaseWindow(HWND hwndOS2, ATOM classAtom)
    118118                     : GenericObject(&windows, &critsect), ChildWindow(&critsect)
    119119{
    120   Init();
    121   OS2Hwnd = hwndOS2;
     120    Init();
     121    OS2Hwnd = OS2HwndFrame = hwndOS2;
     122
     123    /* Find the window class */
     124    windowClass = Win32WndClass::FindClass(NULL, (LPSTR)classAtom);
     125    if (!windowClass)
     126    {
     127        char buffer[32];
     128        GlobalGetAtomNameA( classAtom, buffer, sizeof(buffer) );
     129        dprintf(("Bad class '%s'", buffer ));
     130        DebugInt3();
     131    }
     132
     133    //Allocate window words
     134    nrUserWindowBytes = windowClass->getExtraWndBytes();
     135    if(nrUserWindowBytes) {
     136        userWindowBytes = (char *)_smalloc(nrUserWindowBytes);
     137        memset(userWindowBytes, 0, nrUserWindowBytes);
     138    }
     139
     140    WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), WINPROC_GetProcType(windowClass->getWindowProc()), WIN_PROC_WINDOW);
     141    hInstance  = NULL;
     142    dwStyle    = WS_VISIBLE;
     143    dwOldStyle = dwStyle;
     144    dwExStyle  = 0;
    122145}
    123146//******************************************************************************
  • trunk/src/user32/win32wbase.h

    r7734 r7762  
    1 /* $Id: win32wbase.h,v 1.136 2002-01-07 11:18:11 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.137 2002-01-12 09:55:52 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    136136                Win32BaseWindow();
    137137                Win32BaseWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL isUnicode);
    138                 Win32BaseWindow(HWND hwndOS2, ULONG reserved);
     138                Win32BaseWindow(HWND hwndOS2, ATOM classAtom);
    139139
    140140virtual        ~Win32BaseWindow();
  • trunk/src/user32/window.cpp

    r7248 r7762  
    1 /* $Id: window.cpp,v 1.113 2001-10-28 15:24:16 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.114 2002-01-12 09:55:52 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    263263//******************************************************************************
    264264//******************************************************************************
    265 ODINFUNCTION1(HWND, CreateFakeWindowEx,
    266               HWND, hwndOS2)
     265ODINFUNCTION2(HWND, CreateFakeWindowEx,
     266              HWND, hwndOS2, ATOM, classAtom)
    267267{
    268268 Win32BaseWindow *window;
    269269
    270     window = new Win32BaseWindow(hwndOS2, 0);
     270    window = new Win32BaseWindow(hwndOS2, classAtom);
    271271    if(window == NULL)
    272272    {
Note: See TracChangeset for help on using the changeset viewer.