From 171daf8f9e67c30553cbfae134f7b75181e19550 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Fri, 18 Apr 2014 09:32:32 +0400 Subject: [PATCH] Reset title of MDI frame only if frame window is maximized --- cryptExt.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cryptExt.js b/cryptExt.js index a35082f..1e4e5e7 100644 --- a/cryptExt.js +++ b/cryptExt.js @@ -3911,8 +3911,10 @@ function cryptTest() { var isMDI = AkelPad.IsMDI() == 1 /*WMD_MDI*/; if(isMDI) { var hWndFrame = AkelPad.SendMessage(hMainWnd, 1223 /*AKD_GETFRAMEINFO*/, 1 /*FI_WNDEDITPARENT*/, 0 /*current frame*/); - var origFrameTitle = windowText(hWndFrame); - windowText(hWndFrame, ""); + if(oSys.Call("User32::IsZoomed", hWndFrame)) { + var origFrameTitle = windowText(hWndFrame); + windowText(hWndFrame, ""); + } } var origTitle = windowText(hMainWnd); function feedback(s) { @@ -3989,7 +3991,7 @@ function cryptTest() { pbkdf2IterationsMin = piMin; pbkdf2IterationsMax = piMax; windowText(hMainWnd, origTitle); - isMDI && windowText(hWndFrame, origFrameTitle); + origFrameTitle && windowText(hWndFrame, origFrameTitle); var elapsedTime = "\nElapsed time: " + (new Date().getTime() - t) + " ms"; AkelPad.MessageBox( hMainWnd,