Archived
binded menu to static
This commit is contained in:
1 parent
f71f209959
commit
841754fa54
3 files changed
+2
-1
No files matched your search
Binary file not shown.
@@ -13,6 +13,7 @@
|
|||||||
#define IDC_EASYAUDIOPLAYER 109
|
#define IDC_EASYAUDIOPLAYER 109
|
||||||
#define IDR_MAINFRAME 128
|
#define IDR_MAINFRAME 128
|
||||||
#define IDC_STATIC -1
|
#define IDC_STATIC -1
|
||||||
|
#define IDC_MENU 200
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin
|
|||||||
if (!RegisterClassEx(&windowClass)) {
|
if (!RegisterClassEx(&windowClass)) {
|
||||||
return 1;
|
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);
|
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);
|
SendMessage(mainWindow, WM_SETFONT, (WPARAM)hFont, TRUE);
|
||||||
ShowWindow(mainWindow, nCmdShow);
|
ShowWindow(mainWindow, nCmdShow);
|
||||||
|
|||||||
Reference in new issue
Block a user