Ignore:
Timestamp:
Jul 18, 1999, 12:39:52 PM (26 years ago)
Author:
sandervl
Message:

Lots of changes

File:
1 edited

Legend:

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

    r321 r325  
    1 /* $Id: window.cpp,v 1.4 1999-07-17 11:52:23 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.5 1999-07-18 10:39:52 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    475475//******************************************************************************
    476476//******************************************************************************
    477 BOOL WIN32API GetWindowRect( HWND arg1, PRECT  arg2)
    478 {
    479  BOOL rc;
    480 
    481     rc = O32_GetWindowRect(arg1, arg2);
    482     dprintf(("USER32:  GetWindowRect %X returned %d\n", arg1, rc));
    483     return(rc);
    484 }
    485 //******************************************************************************
    486 //******************************************************************************
    487 BOOL WIN32API SetWindowTextA(HWND arg1, LPCSTR  arg2)
    488 {
    489 #ifdef DEBUG
    490     WriteLog("USER32:  SetWindowText %s\n", arg2);
    491 #endif
    492     return O32_SetWindowText(arg1, arg2);
     477BOOL WIN32API GetWindowRect( HWND hwnd, PRECT pRect)
     478{
     479   Win32Window *window;
     480
     481    window = Win32Window::GetWindowFromHandle(hwnd);
     482    if(!window) {
     483        dprintf(("GetWindowRect, window %x not found", hwnd));
     484        return 0;
     485    }
     486    dprintf(("GetWindowRect %x", hwnd));
     487    return window->GetWindowRect(pRect);
     488}
     489//******************************************************************************
     490//******************************************************************************
     491int WIN32API GetWindowTextLengthA( HWND hwnd)
     492{
     493   Win32Window *window;
     494
     495    window = Win32Window::GetWindowFromHandle(hwnd);
     496    if(!window) {
     497        dprintf(("GetWindowTextLength, window %x not found", hwnd));
     498        return 0;
     499    }
     500    dprintf(("GetWindowTextLength %x", hwnd));
     501    return window->GetWindowTextLengthA();
     502}
     503//******************************************************************************
     504//******************************************************************************
     505int WIN32API GetWindowTextA( HWND hwnd, LPSTR lpsz, int cch)
     506{
     507   Win32Window *window;
     508
     509    window = Win32Window::GetWindowFromHandle(hwnd);
     510    if(!window) {
     511        dprintf(("GetWindowTextA, window %x not found", hwnd));
     512        return 0;
     513    }
     514    dprintf(("GetWindowTextA %x", hwnd));
     515    return window->GetWindowTextA(lpsz, cch);
     516}
     517//******************************************************************************
     518//******************************************************************************
     519BOOL WIN32API SetWindowTextA(HWND hwnd, LPCSTR lpsz)
     520{
     521   Win32Window *window;
     522
     523    window = Win32Window::GetWindowFromHandle(hwnd);
     524    if(!window) {
     525        dprintf(("SetWindowTextA, window %x not found", hwnd));
     526        return 0;
     527    }
     528    dprintf(("SetWindowTextA %x %s", hwnd, lpsz));
     529    return window->SetWindowTextA(lpsz);
    493530}
    494531//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.