Ignore:
Timestamp:
Feb 24, 2000, 8:19:10 PM (26 years ago)
Author:
sandervl
Message:

WS_MAXIMIZE & WS_MINIMIZE flags updated when necessary & RedrawWindow changes

File:
1 edited

Legend:

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

    r2804 r2881  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.17 2000-02-16 14:34:27 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.18 2000-02-24 19:19:08 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    326326        if (!win32wnd->CanReceiveSizeMsgs())    goto dummymessage;
    327327
     328        ULONG windowStyle = WinQueryWindowULong(os2Msg->hwnd, QWL_STYLE);
     329        win32wnd->setStyle(win32wnd->getStyle() & ~(WS_MAXIMIZE_W|WS_MINIMIZE_W));
     330        if (windowStyle & WS_MINIMIZED) {
     331                win32wnd->setStyle(win32wnd->getStyle() | WS_MINIMIZE_W);
     332        }
     333        else
     334        if (windowStyle & WS_MAXIMIZED) {
     335                win32wnd->setStyle(win32wnd->getStyle() | WS_MAXIMIZE_W);
     336        }
     337
    328338        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
    329339                dprintf(("Set client rectangle to (%d,%d)(%d,%d)", swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy));
     
    667677    case WM_PAINT:
    668678    {
    669         if(win32wnd->IsIconic()) {
     679        if(win32wnd->IsWindowIconic()) {
    670680                winMsg->message = WINWM_PAINTICON;
    671681        }
Note: See TracChangeset for help on using the changeset viewer.