Author: fireball
Date: Sat Oct 6 14:50:51 2007
New Revision: 29412
URL:
http://svn.reactos.org/svn/reactos?rev=29412&view=rev
Log:
Dmitry Chapyshev <lentind(a)yandex.ru>
- Add a temporary icon (should be changed to a better one), so that it's displayed in
the taskbar and window title.
Added:
trunk/reactos/base/applications/msconfig/res/
trunk/reactos/base/applications/msconfig/res/msconfig.ico (with props)
Modified:
trunk/reactos/base/applications/msconfig/msconfig.c
trunk/reactos/base/applications/msconfig/msconfig.rc
trunk/reactos/base/applications/msconfig/resource.h
Modified: trunk/reactos/base/applications/msconfig/msconfig.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/msconfig.c (original)
+++ trunk/reactos/base/applications/msconfig/msconfig.c Sat Oct 6 14:50:51 2007
@@ -141,11 +141,22 @@
{
int idctrl;
LPNMHDR pnmh;
+ static HICON hIcon;
switch (message)
{
case WM_INITDIALOG:
hMainWnd = hDlg;
+ hIcon = LoadImage(GetModuleHandle(NULL),
+ MAKEINTRESOURCE(IDI_APPICON),
+ IMAGE_ICON,
+ 16,
+ 16,
+ 0);
+ SendMessage(hDlg,
+ WM_SETICON,
+ ICON_SMALL,
+ (LPARAM)hIcon);
return OnCreate(hDlg);
case WM_COMMAND:
Modified: trunk/reactos/base/applications/msconfig/msconfig.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/msconfig.rc (original)
+++ trunk/reactos/base/applications/msconfig/msconfig.rc Sat Oct 6 14:50:51 2007
@@ -12,6 +12,8 @@
#define REACTOS_STR_ORIGINAL_FILENAME "msconfig.exe\0"
#include <reactos/version.rc>
+IDI_APPICON ICON "res/msconfig.ico"
#include "rsrc.rc"
+
Added: trunk/reactos/base/applications/msconfig/res/msconfig.ico
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
Binary file - no diff available.
Propchange: trunk/reactos/base/applications/msconfig/res/msconfig.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: trunk/reactos/base/applications/msconfig/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/resource.h (original)
+++ trunk/reactos/base/applications/msconfig/resource.h Sat Oct 6 14:50:51 2007
@@ -111,4 +111,6 @@
#define IDS_MSCONFIG 3000
+#define IDI_APPICON 3001
+
/* EOF */