Author: khornicek Date: Tue Mar 17 15:33:38 2015 New Revision: 66756
URL: http://svn.reactos.org/svn/reactos?rev=66756&view=rev Log: [SHELL32] - properly calculate the size of the open with icon control CORE-3904
Modified: trunk/reactos/dll/win32/shell32/dialogs/filedefext.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/filedefext.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/f... ============================================================================== --- trunk/reactos/dll/win32/shell32/dialogs/filedefext.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/dialogs/filedefext.cpp [iso-8859-1] Tue Mar 17 15:33:38 2015 @@ -306,8 +306,10 @@ ShowWindow(hIconCtrl, SW_SHOW); RECT rcIcon, rcDescr; GetWindowRect(hIconCtrl, &rcIcon); - if (rcIcon.left == rcIcon.right) - ERR("Icon control has invalid width: %d-%d\n", rcIcon.left, rcIcon.right); + + rcIcon.right = rcIcon.left + GetSystemMetrics(SM_CXSMICON); + rcIcon.bottom = rcIcon.top + GetSystemMetrics(SM_CYSMICON); + MapWindowPoints(NULL, hwndDlg, (LPPOINT)&rcIcon, 2); GetWindowRect(hDescrCtrl, &rcDescr); MapWindowPoints(NULL, hwndDlg, (LPPOINT)&rcDescr, 2);