[0.4.13][RAPPS] Pick some simplifications from master up to 0.4.15-dev-3726-gc262020 (e.g. CORE-18018 and (#2751))

As the dialog simply displays the copyright names and nothing particular it makes sense to use ShellAboutW() instead.

Several fixes ported back:
0.4.15-dev-3726-g c262020016 README CORE-18018
0.4.15-dev-3724-g 3a7c0d82d2 size fallback part 1 CORE-18018
0.4.15-dev-3569-g b5a6357d93 available.h/.cpp Strip 3 useless functions
0.4.15-dev-384-g 393a2c42fe CDPath in README
0.4.15-dev-227-g a6084d7440 ShellAbout() (#2751)
and some whitespace corrections, especially in cabinet.cpp
This commit is contained in:
Joachim Henze 2022-01-24 10:01:23 +01:00
parent fc807cf0d8
commit bcdc88f70b
34 changed files with 61 additions and 324 deletions

View file

@ -1469,6 +1469,19 @@ private:
}
}
VOID ShowAboutDlg()
{
ATL::CStringW szApp;
ATL::CStringW szAuthors;
HICON hIcon;
szApp.LoadStringW(IDS_APPTITLE);
szAuthors.LoadStringW(IDS_APP_AUTHORS);
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
ShellAboutW(m_hWnd, szApp, szAuthors, hIcon);
DestroyIcon(hIcon);
}
VOID OnCommand(WPARAM wParam, LPARAM lParam)
{
WORD wCommand = LOWORD(wParam);
@ -1605,7 +1618,7 @@ private:
break;
case ID_ABOUT:
ShowAboutDialog();
ShowAboutDlg();
break;
case ID_CHECK_ALL: