Ignore:
Timestamp:
Aug 28, 1999, 7:24:45 PM (26 years ago)
Author:
dengert
Message:

reposition child windows when parent height is changed

File:
1 edited

Legend:

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

    r724 r728  
    1 /* $Id: win32wnd.cpp,v 1.32 1999-08-28 14:09:30 sandervl Exp $ */
     1/* $Id: win32wnd.cpp,v 1.33 1999-08-28 17:24:45 dengert Exp $ */
    22/*
    33 * Win32 Window Code for OS/2
     
    972972ULONG Win32Window::MsgEraseBackGround(HDC hdc)
    973973{
    974     if(isIcon) {
    975             return SendInternalMessageA(WM_ICONERASEBKGND, hdc, 0);
    976     }
    977     else    return SendInternalMessageA(WM_ERASEBKGND, hdc, 0);
     974    ULONG rc;
     975    HDC   hdcErase = hdc;
     976
     977    if (hdcErase == 0)
     978        hdcErase = O32_GetDC(OS2Hwnd);
     979
     980    if(isIcon)
     981        rc = SendInternalMessageA(WM_ICONERASEBKGND, hdcErase, 0);
     982    else
     983        rc = SendInternalMessageA(WM_ERASEBKGND, hdcErase, 0);
     984    if (hdc == 0)
     985        O32_ReleaseDC(OS2Hwnd, hdcErase);
     986    return (rc);
    978987}
    979988//******************************************************************************
     
    16581667    if(OSLibWinQueryUpdateRect(OS2Hwnd, &rect))
    16591668    {//update region not empty
    1660         SendInternalMessageA((isIcon) ? WM_PAINTICON : WM_PAINT, 0, 0);
     1669        HDC hdc;
     1670
     1671        hdc = O32_GetDC(OS2Hwnd);
     1672        if (isIcon)
     1673        {
     1674            SendInternalMessageA(WM_ICONERASEBKGND, (WPARAM)hdc, 0);
     1675            SendInternalMessageA(WM_PAINTICON, 0, 0);
     1676        } else
     1677        {
     1678            SendInternalMessageA(WM_ERASEBKGND, (WPARAM)hdc, 0);
     1679            SendInternalMessageA(WM_PAINT, 0, 0);
     1680        }
     1681        O32_ReleaseDC(OS2Hwnd, hdc);
    16611682    }
    16621683    return TRUE;
Note: See TracChangeset for help on using the changeset viewer.