From a1dd103887ff7e6b6881716da495b4e57ed754c0 Mon Sep 17 00:00:00 2001 From: RadAd Date: Mon, 15 Jul 2019 16:39:00 +1000 Subject: Use registry setting for MDI mode --- RadTerminal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RadTerminal.cpp') diff --git a/RadTerminal.cpp b/RadTerminal.cpp index 87d352f..be590a9 100644 --- a/RadTerminal.cpp +++ b/RadTerminal.cpp @@ -182,7 +182,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, PTSTR pCmdLine, int nCmdSho HWND hWnd = NULL; HWND hWndMDIClient = NULL; HACCEL hAccel = NULL; - bool bMDI = true; + bool bMDI = RegGetDWORD(HKEY_CURRENT_USER, _T("Software\\RadSoft\\" PROJ_CODE), _T("MDI"), TRUE) > 0; CHECK(GetRadTerminalAtom(hInstance), EXIT_FAILURE); -- cgit v1.2.3