aboutsummaryrefslogtreecommitdiff
path: root/RadTerminalFrame.cpp
diff options
context:
space:
mode:
authorRadAd <adamgates84+github@gmail.com>2019-07-15 10:57:33 +1000
committerRadAd <adamgates84+github@gmail.com>2019-07-15 10:57:33 +1000
commit18d6af8d54bce0d270e495013370e76910713617 (patch)
tree1d332937d7926a128ca2e9cc240de0ff3e890e8c /RadTerminalFrame.cpp
parentff198de91521e9c048670a18ec3df717b9dc7495 (diff)
downloadRadTerminal-18d6af8d54bce0d270e495013370e76910713617.tar.gz
RadTerminal-18d6af8d54bce0d270e495013370e76910713617.zip
Fix for WM_MOUSEACTIVATE with MDI child windows
Diffstat (limited to 'RadTerminalFrame.cpp')
-rw-r--r--RadTerminalFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/RadTerminalFrame.cpp b/RadTerminalFrame.cpp
index defcd0e..9ed7ebf 100644
--- a/RadTerminalFrame.cpp
+++ b/RadTerminalFrame.cpp
@@ -59,6 +59,8 @@ BOOL RadTerminalFrameOnCreate(HWND hWnd, LPCREATESTRUCT lpCreateStruct)
HWND hWndMDIClient = CreateWindow(TEXT("MDICLIENT"), (LPCTSTR) NULL,
WS_CHILD | WS_CLIPCHILDREN | WS_VSCROLL | WS_HSCROLL,
0, 0, 0, 0, hWnd, (HMENU) 0, hInst, (LPSTR) &ccs);
+ if (hWndMDIClient == NULL)
+ return FALSE;
ShowWindow(hWndMDIClient, SW_SHOW);