From 841754fa5422ba758528d59e3c0c51aae86fc3bf Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Thu, 20 May 2021 09:09:14 +0200 Subject: [PATCH] binded menu to static --- Easy Audio Player.rc | Bin 8340 -> 8350 bytes Resource.h | 1 + main.cpp | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Easy Audio Player.rc b/Easy Audio Player.rc index 04b0384c08cf487f2a374404a254c4c43de33738..01bc3bec0be6d2229a0e961dd2cd293b87a04a11 100644 GIT binary patch delta 24 fcmbQ@IL~o|9OvXU+#Kw_46Y1*456EqISa)BT_Og7 delta 18 ZcmbQ|IK^>;94D(0g8_rVW?jxgaR4$h1e5>( diff --git a/Resource.h b/Resource.h index 47d28bd..76624d8 100644 --- a/Resource.h +++ b/Resource.h @@ -13,6 +13,7 @@ #define IDC_EASYAUDIOPLAYER 109 #define IDR_MAINFRAME 128 #define IDC_STATIC -1 +#define IDC_MENU 200 // Next default values for new objects // diff --git a/main.cpp b/main.cpp index 33612cf..1d484b0 100644 --- a/main.cpp +++ b/main.cpp @@ -39,7 +39,7 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin if (!RegisterClassEx(&windowClass)) { return 1; } - menuBar = LoadMenu(currentInst, MAKEINTRESOURCE(200)); + menuBar = LoadMenu(currentInst, (LPCWSTR)IDC_MENU); mainWindow = EzCreateWindow(windowClass,currentInst,L"Easy Audio Player", WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, 400, 620, NULL, menuBar); SendMessage(mainWindow, WM_SETFONT, (WPARAM)hFont, TRUE); ShowWindow(mainWindow, nCmdShow);