Ignore:
Timestamp:
Jul 20, 2000, 8:08:13 PM (25 years ago)
Author:
sandervl
Message:

SetWindowPlacement, CreateCaret & Set/GetCaretPos fixes

File:
1 edited

Legend:

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

    r3853 r3873  
    1 /* $Id: win32wbase.cpp,v 1.207 2000-07-18 18:35:39 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.208 2000-07-20 18:08:13 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    20772077
    20782078    dprintf(("ShowWindow %x %x", getWindowHandle(), nCmdShow));
    2079     if(getWindowHandle() == 0x68000030 && nCmdShow == 0) {
     2079    if(getWindowHandle() == 0x6800001d && nCmdShow == 1) {
    20802080        rc = 0;
    20812081    }
     
    21332133        case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
    21342134        case SW_RESTORE:
     2135            //TODO: WIN_RESTORE_MAX flag!!!!!!!!!!!!!!
    21352136            swp |= SWP_SHOWWINDOW | SWP_FRAMECHANGED;
    21362137
     
    23242325}
    23252326//******************************************************************************
     2327//TODO: Check how this api really works in NT
     2328//      This implemention doesn't make a lot of sense to me (compared to the
     2329//      description in the SDK docs)
    23262330//******************************************************************************
    23272331BOOL Win32BaseWindow::SetWindowPlacement(WINDOWPLACEMENT *wndpl)
     
    23482352   }
    23492353   else {
    2350         SetWindowPos(0, windowpos.rcNormalPosition.left, windowpos.rcNormalPosition.top,
     2354        //Papyrus calls this api with rcNormalPosition set to 0
     2355        //So the rcNormalPosition should probably not affect the current position
     2356#if 0
     2357        SetWindowPos(0, windowpos.rcNormalPosition.left, windowpos.rcNormalPosition.top,
    23512358                     windowpos.rcNormalPosition.right - windowpos.rcNormalPosition.left,
    23522359                     windowpos.rcNormalPosition.bottom - windowpos.rcNormalPosition.top,
    23532360                     SWP_NOZORDER | SWP_NOACTIVATE );
     2361#endif
    23542362   }
    23552363   ShowWindow(wndpl->showCmd);
Note: See TracChangeset for help on using the changeset viewer.