Archived
keyboard shortcuts
This commit is contained in:
1 parent
447dbfb743
commit
e7ef2d7eaf
3 files changed
+6
-4
No files matched your search
Binary file not shown.
+2
-3
@@ -3,15 +3,14 @@
|
||||
// Used by PAiPlayer.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_EASYAUDIOPLAYER_DIALOG 102
|
||||
#define IDD_PAIPLAYER_DIALOG 102
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDD_ABOUTBOX 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDI_EASYAUDIOPLAYER 107
|
||||
#define IDI_PAIPLAYER 107
|
||||
#define IDI_SMALL 108
|
||||
#define IDC_EASYAUDIOPLAYER 109
|
||||
#define IDC_PAIPLAYER 109
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDC_MENU 200
|
||||
#define ID_PLIK_OD32774 32774
|
||||
|
||||
@@ -65,6 +65,7 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin
|
||||
if (!RegisterClassEx(&windowClass)) {
|
||||
return 1;
|
||||
}
|
||||
HACCEL shortcuts = LoadAccelerators(currentInst, MAKEINTRESOURCE(IDC_PAIPLAYER));
|
||||
menuBar = LoadMenu(currentInst, (LPCWSTR)IDC_MENU);
|
||||
mainWindow = EzCreateWindow(windowClass,currentInst,PROGRAM_NAME, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, 400, 620, NULL, menuBar);
|
||||
SendMessage(mainWindow, WM_SETFONT, (WPARAM)hFont, TRUE);
|
||||
@@ -73,9 +74,11 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin
|
||||
UpdateWindow(mainWindow);
|
||||
|
||||
while (GetMessage(&msg, NULL, 0, 0)) {
|
||||
if (!TranslateAccelerator(msg.hwnd, shortcuts, &msg)) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -245,7 +248,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||
}
|
||||
}
|
||||
|
||||
switch (wParam) {
|
||||
switch (windowId) {
|
||||
case IDM_EXIT:
|
||||
SendMessage(mainWindow, WM_CLOSE, NULL, NULL);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user