Ignore:
Timestamp:
Oct 30, 1999, 11:19:47 AM (26 years ago)
Author:
sandervl
Message:

EB's unicode changes + seticon + mdi fixes

File:
1 edited

Legend:

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

    r1511 r1513  
    1 /* $Id: win32wbase.cpp,v 1.67 1999-10-29 16:06:56 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.68 1999-10-30 09:19:45 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    420420  hwndLinkAfter = ((cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD)
    421421                  ? HWND_BOTTOM : HWND_TOP;
    422 #endif
    423 
    424 #if 0
    425 //TODO
    426     /* Call the WH_CBT hook */
    427 
    428     if (HOOK_IsHooked( WH_CBT ))
    429     {
    430         CBT_CREATEWNDA cbtc;
    431         LRESULT ret;
    432 
    433         cbtc.lpcs = cs;
    434         cbtc.hwndInsertAfter = hwndLinkAfter;
    435         ret = unicode ? HOOK_CallHooksW(WH_CBT, HCBT_CREATEWND, Win32Hwnd, (LPARAM)&cbtc)
    436                       : HOOK_CallHooksA(WH_CBT, HCBT_CREATEWND, Win32Hwnd, (LPARAM)&cbtc);
    437         if (ret)
    438     {
    439         TRACE_(win)("CBT-hook returned 0\n");
    440         wndPtr->pDriver->pFinalize(wndPtr);
    441             retvalue =  0;
    442             goto end;
    443     }
    444     }
    445422#endif
    446423
     
    12561233  return NULL;
    12571234}
    1258 /***********************************************************************/
    1259 /***********************************************************************/
     1235//******************************************************************************
     1236//******************************************************************************
    12601237VOID Win32BaseWindow::subclassScrollBars(BOOL subHorz,BOOL subVert)
    12611238{
     
    15961573
    15971574    case WM_GETTEXT:   //TODO: SS_ICON controls
    1598         lstrcpynW((LPWSTR)lParam, windowNameW, wParam);
    1599         return min(wndNameLength, wParam);
     1575    {
     1576            LRESULT result;
     1577            char *str = (char *) malloc(wParam + 1);
     1578            result = DefWindowProcA(Msg, wParam, (LPARAM)str );
     1579            lstrcpynAtoW( (LPWSTR)lParam, str, wParam );
     1580            free(str);
     1581            return result;
     1582    }
    16001583
    16011584    case WM_SETTEXT:
    1602         if(!fInternalMsg) {
    1603                 return SetWindowTextW((LPWSTR)lParam);
     1585    {
     1586        if(!fInternalMsg)
     1587        {
     1588           LRESULT result;
     1589           char *aText = (char *) malloc((lstrlenW((LPWSTR)lParam)+1)*sizeof(WCHAR));
     1590           *aText = 0;
     1591           lstrcpyWtoA(aText, (LPWSTR) lParam);
     1592           result = SetWindowTextA(aText);
     1593           free(aText);
     1594           return result;
    16041595        }
    16051596        else    return 0;
     1597    }
    16061598
    16071599    default:
     
    19021894    dprintf(("Win32BaseWindow::SetIcon %x", hIcon));
    19031895    if(OSLibWinSetIcon(OS2HwndFrame, hIcon) == TRUE) {
    1904         SendMessageA(WM_SETICON, hIcon, 0);
     1896//TODO: Wine does't send these. Correct?
     1897//        SendMessageA(WM_SETICON, ICON_BIG, hIcon);
    19051898        return TRUE;
    19061899    }
Note: See TracChangeset for help on using the changeset viewer.