aboutsummaryrefslogtreecommitdiff
path: root/RadTerminal.cpp
diff options
context:
space:
mode:
authorRadAd <adamgates84+github@gmail.com>2019-07-15 16:39:00 +1000
committerRadAd <adamgates84+github@gmail.com>2019-07-15 16:39:00 +1000
commita1dd103887ff7e6b6881716da495b4e57ed754c0 (patch)
treee4ec9da83222e0afebe8427c578aa6a78cf5f61b /RadTerminal.cpp
parent3fc27865c71d09f7016c895e57c9abbec09e9536 (diff)
downloadRadTerminal-a1dd103887ff7e6b6881716da495b4e57ed754c0.tar.gz
RadTerminal-a1dd103887ff7e6b6881716da495b4e57ed754c0.zip
Use registry setting for MDI mode
Diffstat (limited to 'RadTerminal.cpp')
-rw-r--r--RadTerminal.cpp2
1 files changed, 1 insertions, 1 deletions
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);