Ignore:
Timestamp:
Jul 25, 1999, 11:19:22 AM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r385 r391  
    1 /* $Id: window.cpp,v 1.9 1999-07-24 14:01:45 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.10 1999-07-25 09:19:22 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    299299//******************************************************************************
    300300//******************************************************************************
    301 HDC WIN32API GetWindowDC(HWND arg1)
    302 {
    303 #ifdef DEBUG
    304     WriteLog("USER32:  GetWindowDC\n");
    305 #endif
    306     return O32_GetWindowDC(arg1);
    307 }
    308 //******************************************************************************
    309 //******************************************************************************
    310301BOOL WIN32API EnableWindow( HWND hwnd, BOOL fEnable)
    311302{
     
    374365    dprintf(("USER32:  SetWindowPlacement\n"));
    375366    return O32_SetWindowPlacement(arg1, arg2);
     367}
     368//******************************************************************************
     369//******************************************************************************
     370BOOL WIN32API GetWindowPlacement( HWND arg1, LPWINDOWPLACEMENT arg2)
     371{
     372#ifdef DEBUG
     373    WriteLog("USER32:  GetWindowPlacement\n");
     374#endif
     375    return O32_GetWindowPlacement(arg1, arg2);
    376376}
    377377//******************************************************************************
     
    455455             ptIcon));
    456456
    457     if (O32_GetWindowPlacement( hwnd, &wndpl ))
     457    if (GetWindowPlacement( hwnd, &wndpl ))
    458458    {
    459459        if (rectWnd) *rectWnd = wndpl.rcNormalPosition;
     
    537537    dprintf(("GetWindowTextA %x", hwnd));
    538538    return window->GetWindowTextA(lpsz, cch);
     539}
     540//******************************************************************************
     541//******************************************************************************
     542int WIN32API GetWindowTextLengthW( HWND hwnd)
     543{
     544    dprintf(("USER32:  GetWindowTextLengthW\n"));
     545    return GetWindowTextLengthA(hwnd);
     546}
     547//******************************************************************************
     548//******************************************************************************
     549int WIN32API GetWindowTextW(HWND hwnd, LPWSTR lpsz, int cch)
     550{
     551 char title[128];
     552 int  rc;
     553
     554   rc = O32_GetWindowText(hwnd, title, sizeof(title));
     555#ifdef DEBUG
     556   WriteLog("USER32:  GetWindowTextW returned %s\n", title);
     557#endif
     558   if(rc > cch) {
     559    title[cch-1] = 0;
     560    rc = cch;
     561   }
     562   AsciiToUnicode(title, lpsz);
     563   return(rc);
    539564}
    540565//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.