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

CreateFakeWindowEx change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.