From 18d6af8d54bce0d270e495013370e76910713617 Mon Sep 17 00:00:00 2001 From: RadAd Date: Mon, 15 Jul 2019 10:57:33 +1000 Subject: Fix for WM_MOUSEACTIVATE with MDI child windows --- RadTerminalFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'RadTerminalFrame.cpp') 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); -- cgit v1.2.3