Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
StudyDx
Commits
8ea2f717
Commit
8ea2f717
authored
Dec 15, 2022
by
Clark Lin
Browse files
add icon
parent
80fa0592
Changes
8
Show whitespace changes
Inline
Side-by-side
StudyDx/StudyDx.aps
0 → 100644
View file @
8ea2f717
File added
StudyDx/StudyDx.rc
0 → 100644
View file @
8ea2f717
B
// Microsoft Visual C++ generated resource script.
StudyDx/StudyDx.vcxproj
View file @
8ea2f717
...
...
@@ -145,9 +145,16 @@
<ItemGroup>
<ClInclude
Include=
"ChiliException.h"
/>
<ClInclude
Include=
"ChiliWin.h"
/>
<ClInclude
Include=
"resource.h"
/>
<ClInclude
Include=
"Window.h"
/>
<ClInclude
Include=
"WindowsMessageMap.h"
/>
</ItemGroup>
<ItemGroup>
<ResourceCompile
Include=
"StudyDx.rc"
/>
</ItemGroup>
<ItemGroup>
<Image
Include=
"oasis.ico"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
...
...
StudyDx/StudyDx.vcxproj.filters
View file @
8ea2f717
...
...
@@ -41,5 +41,18 @@
<ClInclude
Include=
"WindowsMessageMap.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"resource.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile
Include=
"StudyDx.rc"
>
<Filter>
Resource Files
</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image
Include=
"oasis.ico"
>
<Filter>
Resource Files
</Filter>
</Image>
</ItemGroup>
</Project>
\ No newline at end of file
StudyDx/WinMain.cpp
View file @
8ea2f717
...
...
@@ -28,7 +28,7 @@ int CALLBACK WinMain(
{
try
{
Window
wnd
(
800
,
3
00
,
"
Donkey Fart Box
"
);
Window
wnd
(
800
,
6
00
,
"
Oasis Demo
"
);
MSG
msg
;
BOOL
gResult
;
...
...
StudyDx/Window.cpp
View file @
8ea2f717
...
...
@@ -19,6 +19,7 @@
******************************************************************************************/
#include "Window.h"
#include <sstream>
#include "resource.h"
// Window Class Stuff
...
...
@@ -35,12 +36,34 @@ Window::WindowClass::WindowClass() noexcept
wc
.
cbClsExtra
=
0
;
wc
.
cbWndExtra
=
0
;
wc
.
hInstance
=
GetInstance
();
wc
.
hIcon
=
nullptr
;
// wc.hIcon = nullptr;
// 指定图标
wc
.
hIcon
=
static_cast
<
HICON
>
(
LoadImage
(
GetInstance
(),
MAKEINTRESOURCE
(
IDI_ICON1
),
IMAGE_ICON
,
32
,
32
,
0
));
wc
.
hCursor
=
nullptr
;
wc
.
hbrBackground
=
nullptr
;
wc
.
lpszMenuName
=
nullptr
;
wc
.
lpszClassName
=
GetName
();
wc
.
hIconSm
=
nullptr
;
// wc.hIconSm = nullptr;
// 指定小图标
wc
.
hIconSm
=
static_cast
<
HICON
>
(
LoadImage
(
GetInstance
(),
MAKEINTRESOURCE
(
IDI_ICON1
),
IMAGE_ICON
,
16
,
16
,
0
));
RegisterClassEx
(
&
wc
);
}
...
...
StudyDx/oasis.ico
0 → 100644
View file @
8ea2f717
121 KB
StudyDx/resource.h
0 → 100644
View file @
8ea2f717
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by StudyDx.rc
//
#define IDI_ICON1 107
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 108
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment