Skip to content

Commit

Permalink
Experiments with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnetic-Fox committed Sep 10, 2023
1 parent 1705771 commit 848793f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WinAPI_test.wpj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ VComponent
WRect
0
0
5717
4314
5712
4304
0
0
9
Expand Down
Binary file added icon1.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.lpszMenuName = NULL;
Expand Down
2 changes: 2 additions & 0 deletions menuitems.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
#define ID_PLIK_ZAKONCZ 100
#define ID_POMOC_O 101

#define IDI_ICON1 10

#endif
2 changes: 2 additions & 0 deletions resources.rc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ FILETYPE 0x1L
END
}

IDI_ICON1 ICON "icon1.ico"

IDR_MENU1 MENU
BEGIN
POPUP "&Plik"
Expand Down

0 comments on commit 848793f

Please sign in to comment.