Add icon
This commit is contained in:
parent
032cd334ae
commit
e5c06b65eb
Binary file not shown.
@ -101,6 +101,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="WinChat.rc" />
|
<ResourceCompile Include="WinChat.rc" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="res\wc.ico" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
@ -35,4 +35,9 @@
|
|||||||
<Filter>Resource Files</Filter>
|
<Filter>Resource Files</Filter>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="res\wc.ico">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</Image>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
BIN
WinChat/res/wc.ico
Normal file
BIN
WinChat/res/wc.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
@ -4,10 +4,12 @@
|
|||||||
//
|
//
|
||||||
#define IDD_DIALOGMAIN 101
|
#define IDD_DIALOGMAIN 101
|
||||||
#define IDR_MENUMAIN 104
|
#define IDR_MENUMAIN 104
|
||||||
|
#define IDI_ICONMAIN 106
|
||||||
#define IDC_STATICTITLE 1001
|
#define IDC_STATICTITLE 1001
|
||||||
#define IDC_BUTTONEXIT 1003
|
#define IDC_BUTTONEXIT 1003
|
||||||
#define IDC_BUTTONCONNECT 1005
|
#define IDC_BUTTONCONNECT 1005
|
||||||
#define IDC_EDITADDRESS 1006
|
#define IDC_EDITADDRESS 1006
|
||||||
|
#define IDC_ICONMAIN 1007
|
||||||
#define ID_FILE_EXIT 40001
|
#define ID_FILE_EXIT 40001
|
||||||
#define ID_HELP_ABOUT 40002
|
#define ID_HELP_ABOUT 40002
|
||||||
|
|
||||||
@ -15,9 +17,9 @@
|
|||||||
//
|
//
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#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_COMMAND_VALUE 40003
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1007
|
#define _APS_NEXT_CONTROL_VALUE 1008
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,6 +32,7 @@ namespace wc {
|
|||||||
app = reinterpret_cast<Application*>(lParam);
|
app = reinterpret_cast<Application*>(lParam);
|
||||||
|
|
||||||
SetWindowText(dlg, app->m_appName.c_str());
|
SetWindowText(dlg, app->m_appName.c_str());
|
||||||
|
SendMessage(dlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICONMAIN))));
|
||||||
|
|
||||||
POINT pt = { };
|
POINT pt = { };
|
||||||
GetCursorPos(&pt);
|
GetCursorPos(&pt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user