Ignore:
Timestamp:
Oct 7, 1999, 11:28:02 AM (26 years ago)
Author:
sandervl
Message:

EB's fixes + scrollbar changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wmdichild.cpp

    r1093 r1159  
    1 /* $Id: win32wmdichild.cpp,v 1.2 1999-09-29 09:16:32 sandervl Exp $ */
     1/* $Id: win32wmdichild.cpp,v 1.3 1999-10-07 09:28:02 sandervl Exp $ */
    22/*
    33 * Win32 MDI Child Window Class for OS/2
     
    326326    }
    327327
    328     hwnd = ::CreateWindowA(cs->szClass, cs->szTitle, style,
    329                          cs->x, cs->y, cs->cx, cs->cy, client->getWindowHandle(),
    330                          (HMENU)wIDmenu, cs->hOwner, cs );
     328    if(!client->IsUnicode())
     329        hwnd = ::CreateWindowA(cs->szClass, cs->szTitle, style,
     330                               cs->x, cs->y, cs->cx, cs->cy, client->getWindowHandle(),
     331                               (HMENU)wIDmenu, cs->hOwner, cs );
     332    else
     333        hwnd = ::CreateWindowW((LPWSTR)cs->szClass, (LPWSTR)cs->szTitle, style,
     334                               cs->x, cs->y, cs->cx, cs->cy, client->getWindowHandle(),
     335                               (HMENU)wIDmenu, cs->hOwner, cs );
    331336
    332337    /* MDI windows are WS_CHILD so they won't be activated by CreateWindow */
Note: See TracChangeset for help on using the changeset viewer.