Changeset 6395 for trunk/src/user32/window.cpp
- Timestamp:
- Jul 28, 2001, 3:43:54 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r6392 r6395 1 /* $Id: window.cpp,v 1.10 1 2001-07-23 19:16:41sandervl Exp $ */1 /* $Id: window.cpp,v 1.102 2001-07-28 13:43:54 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 18 18 * TODO: ShowOwnedPopups needs to be tested 19 19 * GetLastActivePopup needs to be rewritten 20 * ArrangeIconicWindows probably too21 20 * 22 21 */ … … 1745 1744 //****************************************************************************** 1746 1745 //****************************************************************************** 1747 UINT WIN32API ArrangeIconicWindows( HWND hwnd) 1748 { 1749 dprintf(("USER32: ArrangeIconicWindows %x", hwnd)); 1750 return O32_ArrangeIconicWindows(Win32ToOS2Handle(hwnd)); 1746 UINT WIN32API ArrangeIconicWindows( HWND parent) 1747 { 1748 RECT rectParent; 1749 HWND hwndChild; 1750 INT x, y, xspacing, yspacing; 1751 1752 dprintf(("USER32: ArrangeIconicWindows %x", parent)); 1753 dprintf(("USER32: TODO: icon title!!")); 1754 1755 GetClientRect(parent, &rectParent); 1756 x = rectParent.left; 1757 y = rectParent.bottom; 1758 xspacing = GetSystemMetrics(SM_CXICONSPACING); 1759 yspacing = GetSystemMetrics(SM_CYICONSPACING); 1760 1761 hwndChild = GetWindow( parent, GW_CHILD ); 1762 while (hwndChild) 1763 { 1764 if( IsIconic( hwndChild ) ) 1765 { 1766 // WND *wndPtr = WIN_FindWndPtr(hwndChild); 1767 1768 // WINPOS_ShowIconTitle( wndPtr, FALSE ); 1769 1770 SetWindowPos( hwndChild, 0, x + (xspacing - GetSystemMetrics(SM_CXICON)) / 2, 1771 y - yspacing - GetSystemMetrics(SM_CYICON)/2, 0, 0, 1772 SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE ); 1773 // if( IsWindow(hwndChild) ) 1774 // WINPOS_ShowIconTitle(wndPtr , TRUE ); 1775 // WIN_ReleaseWndPtr(wndPtr); 1776 1777 if (x <= rectParent.right - xspacing) x += xspacing; 1778 else 1779 { 1780 x = rectParent.left; 1781 y -= yspacing; 1782 } 1783 } 1784 hwndChild = GetWindow( hwndChild, GW_HWNDNEXT ); 1785 } 1786 return yspacing; 1751 1787 } 1752 1788 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.