Ignore:
Timestamp:
Sep 4, 1999, 9:51:47 PM (26 years ago)
Author:
sandervl
Message:

compile fixes

File:
1 edited

Legend:

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

    r821 r822  
    1 /* $Id: win32wbase.cpp,v 1.7 1999-09-04 19:42:29 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.8 1999-09-04 19:51:46 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    429429#endif
    430430
    431   fakeWinBase.hwndThisObject = OS2Hwnd;
    432   fakeWinBase.pWindowClass = windowClass;
    433   *(PULONG)&fakeWinBase -= 0x90 - 8;
     431//  fakeWinBase.hwndThisObject = OS2Hwnd;
     432//  fakeWinBase.pWindowClass = windowClass;
     433//  *(PULONG)&fakeWinBase -= 0x90 - 8;
    434434//  SetFakeOpen32();
    435435
     
    18781878//******************************************************************************
    18791879//******************************************************************************
    1880 BOOL Win32BaseWindow::IsWindow()
    1881 {
    1882   return TRUE;
    1883 }
    1884 //******************************************************************************
    1885 //******************************************************************************
    18861880BOOL Win32BaseWindow::IsWindowEnabled()
    18871881{
     
    19111905//******************************************************************************
    19121906//******************************************************************************
    1913 int Win32BaseWindow::GetWindowTextLengthA()
    1914 {
    1915     return OSLibWinQueryWindowTextLength(OS2Hwnd);
    1916 }
    1917 //******************************************************************************
    1918 //******************************************************************************
    1919 int Win32BaseWindow::GetWindowTextA(LPSTR lpsz, int cch)
    1920 {
    1921     return OSLibWinQueryWindowText(OS2Hwnd, cch, lpsz);
     1907int Win32BaseWindow::GetWindowTextLength()
     1908{
     1909    return wndNameLength;
     1910}
     1911//******************************************************************************
     1912//******************************************************************************
     1913int Win32BaseWindow::GetWindowText(LPSTR lpsz, int cch)
     1914{
     1915    if(isUnicode == FALSE) {
     1916        strncpy(lpsz, windowNameA, cch);
     1917    }
     1918    else {
     1919        lstrcpynW((LPWSTR)lpsz, windowNameW, cch);
     1920    }
     1921    return wndNameLength;
    19221922}
    19231923//******************************************************************************
     
    19261926{
    19271927    if(lpsz == NULL)
    1928         return FALSE;
     1928        return FALSE;
    19291929
    19301930    if(isUnicode == FALSE) {
     
    19421942    wndNameLength = strlen(windowNameA)+1; //including 0 terminator
    19431943
    1944     if(OS2Hwnd)
    1945         return OSLibWinSetWindowText(OS2Hwnd, (LPSTR)windowNameA);
     1944    if(OS2HwndFrame)
     1945        return OSLibWinSetWindowText(OS2HwndFrame, (LPSTR)windowNameA);
    19461946
    19471947    return TRUE;
Note: See TracChangeset for help on using the changeset viewer.