[RAPPS] Use ShellAbout() to display the about dialog (#2751)

As the dialog simply displays the copyright names and nothing particular it makes sense to use ShellAboutW() instead.
This commit is contained in:
Kyle Katarn
2020-05-14 14:28:57 +02:00
committed by GitHub
parent c6ab64e0f2
commit a6084d7440
29 changed files with 39 additions and 275 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: