diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-13 23:43:57 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-13 23:43:57 +0200 |
commit | 20db24893b3b2a816bf82954ae9bdef243278b4d (patch) | |
tree | d55bba231b377af53ab31b5346fbe7e6a620c535 /c/main.cpp | |
parent | 5fd7a33246d786ee3c7a8d643ff332af793ffa5d (diff) | |
download | EpisodeBrowser-20db24893b3b2a816bf82954ae9bdef243278b4d.tar.gz |
Minor changes.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -121,10 +121,6 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons icc.dwICC = ICC_WIN95_CLASSES; Require(InitCommonControlsEx(&icc)); - /* Load context menu. */ - g_hMenuPopup = Require(LoadMenu(nullptr, MAKEINTRESOURCE(IDR_POPUPMENU))); - g_hMenuPopup = Require(GetSubMenu(g_hMenuPopup, 0)); - WNDCLASSEX wc; memset(&wc, 0, sizeof(WNDCLASSEX)); wc.cbSize = sizeof(WNDCLASSEX); @@ -210,6 +206,10 @@ void InitializeMainWindow(const HWND hWnd) SetWindowTheme = (decltype(SetWindowTheme))(void*)GetProcAddress(hModule, "SetWindowTheme"); } + /* Load context menu. */ + g_hMenuPopup = Require(LoadMenu(nullptr, MAKEINTRESOURCE(IDR_POPUPMENU))); + g_hMenuPopup = Require(GetSubMenu(g_hMenuPopup, 0)); + /* Create child windows. */ g_dlv = new DataListView(hWnd); g_elv = new EpisodeListView(hWnd); |