Changeset 1786 for trunk/src


Ignore:
Timestamp:
Nov 21, 1999, 10:43:18 AM (26 years ago)
Author:
achimha
Message:

issue WM_SETTEXT for edit/static controls on SetWindowTextA/W

File:
1 edited

Legend:

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

    r1762 r1786  
    1 /* $Id: win32wbase.cpp,v 1.85 1999-11-17 17:04:55 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.86 1999-11-21 09:43:18 achimha Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    26652665    wndNameLength = strlen(windowNameA)+1; //including 0 terminator
    26662666
     2667    // Edit and static text controls also need a WM_SETTEXT message
     2668    if (getWindowClass()->hasClassName("EDIT", FALSE) ||
     2669        getWindowClass()->hasClassName("STATIC", FALSE))
     2670      SendInternalMessageA(WM_SETTEXT, 0, (LPARAM)windowNameA);
     2671
    26672672    if(OS2HwndFrame)
    26682673        return OSLibWinSetWindowText(OS2HwndFrame, (LPSTR)windowNameA);
     
    26852690    lstrcpyWtoA(windowNameA, windowNameW);
    26862691    wndNameLength = strlen(windowNameA)+1; //including 0 terminator
     2692
     2693    // Edit and static text controls also need a WM_SETTEXT message
     2694    if (getWindowClass()->hasClassName("EDIT", FALSE) ||
     2695        getWindowClass()->hasClassName("STATIC", FALSE))
     2696      SendInternalMessageA(WM_SETTEXT, 0, (LPARAM)windowNameA);
    26872697
    26882698    if(OS2HwndFrame)
Note: See TracChangeset for help on using the changeset viewer.