Add an option to disable windows menu bar

This commit is contained in:
LunaMoo committed 2019-04-01 14:02:35 +02:00
1 parent c0d5b4be7e
commit 3c49485f7c
4 files changed
+9

No files matched your search

+6
View File
@@ -372,6 +372,9 @@ namespace MainWindow
if (graphicsContext) {
graphicsContext->Resume();
}
if (g_Config.bDisableWinMenu)
SetMenu(hwndMain, NULL);
}
void Minimize() {
@@ -503,6 +506,9 @@ namespace MainWindow
WindowsRawInput::Init();
if (g_Config.bDisableWinMenu)
SetMenu(hwndMain, NULL);
SetFocus(hwndMain);
return TRUE;