Ignore:
Timestamp:
Apr 2, 2001, 12:13:28 AM (24 years ago)
Author:
sandervl
Message:

create dialog controls with CreateWindowExW; use correct SendMessage during CreateWindow

File:
1 edited

Legend:

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

    r5404 r5429  
    1 /* $Id: win32wbase.cpp,v 1.247 2001-03-30 11:14:36 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.248 2001-04-01 22:13:27 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    300300    else
    301301    if ((cs->style & WS_CHILD) && !(cs->style & WS_POPUP)) {
    302             dprintf(("No parent for child window\n" ));
     302            dprintf(("No parent for child window" ));
    303303            SetLastError(ERROR_INVALID_PARAMETER);
    304304            return FALSE;  /* WS_CHILD needs a parent, but WS_POPUP doesn't */
     
    310310    {
    311311        GlobalGetAtomNameA( classAtom, buffer, sizeof(buffer) );
    312         dprintf(("Bad class '%s'\n", buffer ));
     312        dprintf(("Bad class '%s'", buffer ));
    313313        SetLastError(ERROR_INVALID_PARAMETER);
    314314        return 0;
     
    320320    if(HIWORD(cs->lpszClass))
    321321    {
    322         char *astring;
    323 
    324         if(isUnicode) astring = UnicodeToAsciiString((LPWSTR)cs->lpszClass);
    325         else          astring = (char *)cs->lpszClass;
    326 
    327         dprintf(("Window class %s", astring));
    328         if(isUnicode) FreeAsciiString(astring);
     322         if(isUnicode) dprintf(("Window class %ls", cs->lpszClass));
     323         else          dprintf(("Window class %s", cs->lpszClass));
    329324    }
    330325    else dprintf(("Window class %x", cs->lpszClass));
     
    490485 POINT          maxSize, maxPos, minTrack, maxTrack;
    491486 HWND           hwnd = getWindowHandle();
     487 LRESULT (* CALLBACK localSend32)(HWND, UINT, WPARAM, LPARAM);
    492488
    493489    OS2Hwnd      = hwndOS2;
     
    685681    }
    686682
    687     //cs is ascii version of create structure. so use SendInternalMessageA
    688     if(SendInternalMessageA(WM_NCCREATE,0,(LPARAM)cs))
     683    localSend32 = (isUnicode) ? ::SendMessageW : ::SendMessageA;
     684
     685    if(localSend32(getWindowHandle(), WM_NCCREATE,0,(LPARAM)cs))
    689686    {
    690687        RECT tmpRect;
     
    710707        fNoSizeMsg = FALSE;
    711708        if (cs->style & WS_VISIBLE) dwStyle |= WS_VISIBLE; //program could change position in WM_CREATE
    712         if( (SendInternalMessageA(WM_CREATE, 0, (LPARAM)cs )) != -1 )
     709        if( (localSend32(getWindowHandle(), WM_CREATE, 0, (LPARAM)cs )) != -1 )
    713710        {
    714711            if(!(flags & WIN_NEED_SIZE))
Note: See TracChangeset for help on using the changeset viewer.