Ignore:
Timestamp:
Oct 17, 1999, 6:42:40 PM (26 years ago)
Author:
sandervl
Message:

Implemented SetWindowPlacement + bugfixes

File:
1 edited

Legend:

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

    r1336 r1337  
    1 /* $Id: window.cpp,v 1.17 1999-10-17 15:46:10 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.18 1999-10-17 16:42:40 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    147147        {
    148148          sprintf(tmpClassA,"#%d", (int) className);
    149           AsciiToUnicode(tmpClassA, tmpClassW);
     149          AsciiToUnicode(tmpClassA, tmpClassW);
    150150          classAtom = GlobalFindAtomW(tmpClassW);
    151151          className = (LPCWSTR)tmpClassW;
     
    463463    if(!window) {
    464464        dprintf(("SetWindowPos, window %x not found", hwnd));
    465     SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     465        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    466466        return 0;
    467467    }
     
    471471//******************************************************************************
    472472//******************************************************************************
    473 BOOL WIN32API SetWindowPlacement( HWND arg1, const WINDOWPLACEMENT *  arg2)
    474 {
    475     dprintf(("USER32:  SetWindowPlacement\n"));
    476     return O32_SetWindowPlacement(arg1, arg2);
    477 }
    478 //******************************************************************************
    479 //******************************************************************************
    480 BOOL WIN32API GetWindowPlacement( HWND arg1, LPWINDOWPLACEMENT arg2)
    481 {
    482 #ifdef DEBUG
    483     WriteLog("USER32:  GetWindowPlacement\n");
    484 #endif
    485     return O32_GetWindowPlacement(arg1, arg2);
     473BOOL WIN32API SetWindowPlacement(HWND hwnd, const WINDOWPLACEMENT *winpos)
     474{
     475  Win32BaseWindow *window;
     476
     477    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     478    if(!window) {
     479        dprintf(("SetWindowPlacement, window %x not found", hwnd));
     480        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     481        return 0;
     482    }
     483    return window->SetWindowPlacement((WINDOWPLACEMENT *)winpos);
     484}
     485//******************************************************************************
     486//******************************************************************************
     487BOOL WIN32API GetWindowPlacement(HWND hwnd, LPWINDOWPLACEMENT arg2)
     488{
     489    dprintf(("USER32:  GetWindowPlacement\n"));
     490    return O32_GetWindowPlacement(Win32BaseWindow::Win32ToOS2FrameHandle(hwnd), arg2);
    486491}
    487492//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.