r=pedemont, sr=blizzard (platform specific)
OS/2 only - tell titlebar to change text, not just frame window
This commit is contained in:
mkaply%us.ibm.com 2003-04-22 12:57:09 +00:00
parent 201d250df0
commit 0da475046e

View File

@ -3269,8 +3269,12 @@ NS_METHOD nsWindow::SetTitle(const nsString& aTitle)
title[outlen] = '\0';
}
}
WinSetWindowText( GetMainWindow(),
title );
if (mFrameWnd) {
HWND hwndTitleBar = (HWND)WinQueryProperty(mFrameWnd, "hwndTitleBar");
WinSetWindowText( hwndTitleBar, title );
} else {
WinSetWindowText( mWnd, title );
}
delete [] title;
}
}