Skip to content

Commit 2a519a1

Browse files
committed
removed resource.h
1 parent 2836834 commit 2a519a1

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

Editor/Editor.rc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#include "resource.h"
2-
3-
IDC_MYICON ICON "wicked.ico"
1+
1001 ICON "wicked.ico"
42

Editor/Editor_Windows.vcxproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@
121121
</Command>
122122
</PostBuildEvent>
123123
</ItemDefinitionGroup>
124-
<ItemGroup>
125-
<ClInclude Include="resource.h" />
126-
</ItemGroup>
127124
<ItemGroup>
128125
<ResourceCompile Include="Editor.rc" />
129126
</ItemGroup>

Editor/main_Windows.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "stdafx.h"
2-
#include "resource.h"
32

43
#include <SDKDDKVer.h>
54

@@ -117,7 +116,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
117116
wcex.cbClsExtra = 0;
118117
wcex.cbWndExtra = 0;
119118
wcex.hInstance = hInstance;
120-
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDC_MYICON));
119+
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(1001)); // 1001 = icon from Resource.rc file
121120
wcex.hIconSm = wcex.hIcon;
122121
wcex.hCursor = LoadCursor(hInstance, IDC_ARROW);
123122
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);

Editor/resource.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)