use application icon for about dialog

svn path=/trunk/; revision=41883
This commit is contained in:
Matthias Kupfer 2009-07-11 13:34:18 +00:00
parent 73972e4928
commit 0937dce274
2 changed files with 6 additions and 2 deletions

View file

@ -641,9 +641,12 @@ MainWndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
break;
case IDM_ABOUT:
ShellAbout(hwnd, szAppTitle, 0, 0);
{
HICON mplayIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MAIN));
ShellAbout(hwnd, szAppTitle, 0, mplayIcon);
DeleteObject(mplayIcon);
break;
}
case IDM_EXIT:
PostMessage(hwnd, WM_CLOSE, 0, 0);
return 0;

View file

@ -5,6 +5,7 @@
<library>comdlg32</library>
<library>kernel32</library>
<library>user32</library>
<library>gdi32</library>
<library>winmm</library>
<library>shell32</library>
<file>mplay32.c</file>