diff --git a/WinAPI_test.wpj b/WinAPI_test.wpj index 78f237a..31acc67 100644 --- a/WinAPI_test.wpj +++ b/WinAPI_test.wpj @@ -30,8 +30,8 @@ VComponent WRect 0 0 -5717 -4314 +5712 +4304 0 0 9 diff --git a/icon1.ico b/icon1.ico new file mode 100644 index 0000000..d6fd927 Binary files /dev/null and b/icon1.ico differ diff --git a/main.cpp b/main.cpp index 790f8a7..199cd31 100644 --- a/main.cpp +++ b/main.cpp @@ -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; diff --git a/menuitems.h b/menuitems.h index 3f258e6..7f29785 100644 --- a/menuitems.h +++ b/menuitems.h @@ -7,4 +7,6 @@ #define ID_PLIK_ZAKONCZ 100 #define ID_POMOC_O 101 +#define IDI_ICON1 10 + #endif diff --git a/resources.rc b/resources.rc index 2701a29..634fe0d 100644 --- a/resources.rc +++ b/resources.rc @@ -26,6 +26,8 @@ FILETYPE 0x1L END } +IDI_ICON1 ICON "icon1.ico" + IDR_MENU1 MENU BEGIN POPUP "&Plik"