mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user