Skip to content

Commit

Permalink
Reset title of MDI frame only if frame window is maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Apr 18, 2014
1 parent 4e2a0d5 commit 171daf8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cryptExt.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 171daf8

Please sign in to comment.