From 20db24893b3b2a816bf82954ae9bdef243278b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 13 Aug 2022 23:43:57 +0200 Subject: Minor changes. --- c/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index b0fd7d3..6878390 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -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); -- cgit v1.2.3