Ignore:
Timestamp:
Aug 31, 1999, 7:14:52 PM (26 years ago)
Author:
sandervl
Message:

MDI + menu changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/window.cpp

    r750 r760  
    1 /* $Id: window.cpp,v 1.20 1999-08-31 10:36:24 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.21 1999-08-31 17:14:52 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    1919#include <misc.h>
    2020#include <win32wbase.h>
     21#include <win32wmdiclient.h>
    2122#include <oslibwin.h>
    2223#include <oslibgdi.h>
     
    4041        return CreateMDIWindowA(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data);
    4142
     43    //TODO: According to the docs className can be a 16 bits atom
     44    //      Wine seems to assume it's a string though...
    4245    /* Find the class atom */
    4346    if (!(classAtom = GlobalFindAtomA(className)))
     
    6669    cs.dwExStyle      = exStyle;
    6770    dprintf(("CreateWindowExA: (%d,%d) (%d,%d), %x %x", x, y, width, height, style, exStyle));
    68     window = new Win32BaseWindow( &cs, classAtom, FALSE );
     71
     72    //TODO: According to the docs className can be a 16 bits atom
     73    //      Wine seems to assume it's a string though...
     74    if(!stricmp(className, MDICLIENTCLASSNAMEA)) {
     75        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, FALSE);
     76    }
     77    else {
     78        window = new Win32BaseWindow( &cs, classAtom, FALSE );
     79    }
    6980    if(window == NULL)
    7081    {
     
    95106        return CreateMDIWindowW(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data);
    96107
     108    //TODO: According to the docs className can be a 16 bits atom
     109    //      Wine seems to assume it's a string though...
    97110    /* Find the class atom */
    98111    if (!(classAtom = GlobalFindAtomW(className)))
     
    120133    cs.lpszClass      = (LPSTR)className;
    121134    cs.dwExStyle      = exStyle;
    122     window = new Win32BaseWindow( &cs, classAtom, TRUE );
     135
     136    //TODO: According to the docs className can be a 16 bits atom
     137    //      Wine seems to assume it's a string though...
     138    if(!lstrcmpW(className, (LPWSTR)MDICLIENTCLASSNAMEW)) {
     139        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, TRUE);
     140    }
     141    else {
     142        window = new Win32BaseWindow( &cs, classAtom, TRUE );
     143    }
    123144    if(window == NULL)
    124145    {
Note: See TracChangeset for help on using the changeset viewer.