Modified for icons on About dialog box.

This commit is contained in:
spx
2010-08-25 14:36:20 +00:00
parent 5b7a985a7e
commit bea3b2821a
6 changed files with 13 additions and 10 deletions

View File

@ -43,6 +43,12 @@ HWND OpenAboutDialog(HWND hwndOwner, HINSTANCE instance)
if (g_DialogWin == NULL)
{
g_DialogWin = CreateDialog(instance, MAKEINTRESOURCE(IDD_ABOUT_DIALOG), hwndOwner, AboutProc);
if (g_DialogWin)
{
HICON hIcon = LoadIcon(instance, MAKEINTRESOURCE(IDI_TRAY));
SendMessage(g_DialogWin, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
}
}
ShowWindow(g_DialogWin, SW_SHOWNORMAL);
UpdateAboutStatistics();