Changeset 728 for trunk/src/user32/new/win32wnd.cpp
- Timestamp:
- Aug 28, 1999, 7:24:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wnd.cpp
r724 r728 1 /* $Id: win32wnd.cpp,v 1.3 2 1999-08-28 14:09:30 sandervlExp $ */1 /* $Id: win32wnd.cpp,v 1.33 1999-08-28 17:24:45 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 972 972 ULONG Win32Window::MsgEraseBackGround(HDC hdc) 973 973 { 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); 978 987 } 979 988 //****************************************************************************** … … 1658 1667 if(OSLibWinQueryUpdateRect(OS2Hwnd, &rect)) 1659 1668 {//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); 1661 1682 } 1662 1683 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.