mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 04:26:32 +00:00
[SHELL32] Improve file properties dialog (#5852)
Based on KRosUser's patches. - Add missing version strings "Comments" and "LegalTrademarks". - Add version strings "PrivateBuild" and "SpecialBuild" if necessary. - Trim the version string for pretty display. CORE-19270, CORE-19114, CORE-19275
This commit is contained in:
parent
87f94aa10c
commit
00f192fa94
1 changed files with 13 additions and 2 deletions
|
@ -852,6 +852,14 @@ CFileDefExt::InitVersionPage(HWND hwndDlg)
|
|||
AddVersionString(hwndDlg, L"OriginalFilename");
|
||||
AddVersionString(hwndDlg, L"FileVersion");
|
||||
AddVersionString(hwndDlg, L"ProductVersion");
|
||||
AddVersionString(hwndDlg, L"Comments");
|
||||
AddVersionString(hwndDlg, L"LegalTrademarks");
|
||||
|
||||
if (pInfo && (pInfo->dwFileFlags & VS_FF_PRIVATEBUILD))
|
||||
AddVersionString(hwndDlg, L"PrivateBuild");
|
||||
|
||||
if (pInfo && (pInfo->dwFileFlags & VS_FF_SPECIALBUILD))
|
||||
AddVersionString(hwndDlg, L"SpecialBuild");
|
||||
|
||||
/* Attach file version to dialog window */
|
||||
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)this);
|
||||
|
@ -957,8 +965,11 @@ CFileDefExt::VersionPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
if (pwszData == NULL)
|
||||
break;
|
||||
|
||||
TRACE("hDlgCtrl %x string %s\n", hDlgCtrl, debugstr_w(pwszData));
|
||||
SetDlgItemTextW(hwndDlg, 14010, pwszData);
|
||||
CString str(pwszData);
|
||||
str.Trim();
|
||||
|
||||
TRACE("hDlgCtrl %x string %s\n", hDlgCtrl, debugstr_w(str));
|
||||
SetDlgItemTextW(hwndDlg, 14010, str);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue