Skip to content
Browse files

Reset title of MDI frame only if frame window is maximized

  • Loading branch information...
1 parent 4e2a0d5 commit 171daf8f9e67c30553cbfae134f7b75181e19550 @Infocatcher committed Apr 18, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 cryptExt.js
View
8 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,

0 comments on commit 171daf8

Please sign in to comment.
Something went wrong with that request. Please try again.