Make Help->About call ShellAbout
authorSteven Edwards <winehacker@gmail.com>
Sun, 18 Jan 2004 03:28:08 +0000 (03:28 +0000)
committerSteven Edwards <winehacker@gmail.com>
Sun, 18 Jan 2004 03:28:08 +0000 (03:28 +0000)
svn path=/trunk/; revision=7731

rosapps/calc/main.c
rosapps/calc/resource.h

index 4b1175b..56602eb 100644 (file)
@@ -22,6 +22,7 @@
     
 #define WIN32_LEAN_AND_MEAN     // Exclude rarely-used stuff from Windows headers
 #include <windows.h>
+#include <shellapi.h>
 #include <tchar.h>
 
 #include "main.h"
@@ -134,7 +135,9 @@ void OnHelpTopics(void)
 
 void OnHelpAbout(void)
 {
+    ShellAbout(hDlgWnd, _T("ReactOS Calculator"), _T(""), LoadIcon(hInst, MAKEINTRESOURCE(IDI_CALC)));
 }
+
 void OnButtonClick(int ButtonID)
 {
 }
index 52e1c39..4ff8f6c 100644 (file)
@@ -5,6 +5,7 @@
 #define ID_MENU_EDIT                 0
 #define ID_MENU_VIEW                 1
 #define ID_MENU_HELP                 2
+#define IDI_CALC                    100
 #define IDD_STANDARD                 101
 #define IDD_SCIENTIFIC               102
 #define IDR_CALC_STANDARD            103