mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:05:41 +00:00
[SHELL32] Improve CORE-15295 IDD_FILE_PROPERTIES
addendum to 0.4.11-dev-673-g
04e1263921
Actually this control must not statically consume width of 170.
There are two different versions of that dialog.
One has a "change"-button. In this case the edit must be only 100 wide.
In case we have the version without the change button, we resize it to have
170 width (same as its neighbor).
This commit is shared work of
Stanislav Motylkov, Giannis Adamopoulos and Joachim Henze.
Commit supersedes PR#1056.
This commit is contained in:
parent
500a5151ea
commit
432afb4161
33 changed files with 42 additions and 32 deletions
|
@ -614,6 +614,16 @@ CFileDefExt::InitGeneralPage(HWND hwndDlg)
|
|||
LoadStringW(shell32_hInstance, IDS_EXE_DESCRIPTION, wszBuf, _countof(wszBuf));
|
||||
SetDlgItemTextW(hwndDlg, 14006, wszBuf);
|
||||
ShowWindow(GetDlgItem(hwndDlg, 14024), SW_HIDE);
|
||||
|
||||
/* hidden button 14024 allows to draw edit 14007 larger than defined in resources , we use edit 14009 as idol */
|
||||
RECT rectIdol, rectToAdjust;
|
||||
GetClientRect(GetDlgItem(hwndDlg, 14009), &rectIdol);
|
||||
GetClientRect(GetDlgItem(hwndDlg, 14007), &rectToAdjust);
|
||||
SetWindowPos(GetDlgItem(hwndDlg, 14007), HWND_TOP, 0, 0,
|
||||
rectIdol.right-rectIdol.left /* make it as wide as its idol */,
|
||||
rectToAdjust.bottom-rectToAdjust.top /* but keep its current height */,
|
||||
SWP_NOMOVE | SWP_NOZORDER );
|
||||
|
||||
LPCWSTR pwszDescr = m_VerInfo.GetString(L"FileDescription");
|
||||
if (pwszDescr)
|
||||
SetDlgItemTextW(hwndDlg, 14007, pwszDescr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue