diff --git a/WinChat/WinChat.rc b/WinChat/WinChat.rc index d64d2b2..26b9356 100644 Binary files a/WinChat/WinChat.rc and b/WinChat/WinChat.rc differ diff --git a/WinChat/WinChat.vcxproj b/WinChat/WinChat.vcxproj index 162b604..70d6764 100644 --- a/WinChat/WinChat.vcxproj +++ b/WinChat/WinChat.vcxproj @@ -101,6 +101,9 @@ + + + diff --git a/WinChat/WinChat.vcxproj.filters b/WinChat/WinChat.vcxproj.filters index 065fd8b..55f74f8 100644 --- a/WinChat/WinChat.vcxproj.filters +++ b/WinChat/WinChat.vcxproj.filters @@ -35,4 +35,9 @@ Resource Files + + + Resource Files + + \ No newline at end of file diff --git a/WinChat/res/wc.ico b/WinChat/res/wc.ico new file mode 100644 index 0000000..9da0112 Binary files /dev/null and b/WinChat/res/wc.ico differ diff --git a/WinChat/resource.h b/WinChat/resource.h index 8e85634..cb2a82a 100644 --- a/WinChat/resource.h +++ b/WinChat/resource.h @@ -4,10 +4,12 @@ // #define IDD_DIALOGMAIN 101 #define IDR_MENUMAIN 104 +#define IDI_ICONMAIN 106 #define IDC_STATICTITLE 1001 #define IDC_BUTTONEXIT 1003 #define IDC_BUTTONCONNECT 1005 #define IDC_EDITADDRESS 1006 +#define IDC_ICONMAIN 1007 #define ID_FILE_EXIT 40001 #define ID_HELP_ABOUT 40002 @@ -15,9 +17,9 @@ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 106 +#define _APS_NEXT_RESOURCE_VALUE 107 #define _APS_NEXT_COMMAND_VALUE 40003 -#define _APS_NEXT_CONTROL_VALUE 1007 +#define _APS_NEXT_CONTROL_VALUE 1008 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif diff --git a/WinChat/src/Application.cpp b/WinChat/src/Application.cpp index 58cb7c9..c3d0458 100644 --- a/WinChat/src/Application.cpp +++ b/WinChat/src/Application.cpp @@ -32,6 +32,7 @@ namespace wc { app = reinterpret_cast(lParam); SetWindowText(dlg, app->m_appName.c_str()); + SendMessage(dlg, WM_SETICON, ICON_BIG, reinterpret_cast(LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICONMAIN)))); POINT pt = { }; GetCursorPos(&pt);