mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
r=pedemont, sr=blizzard (platform specific) OS/2 only - tell titlebar to change text, not just frame window
This commit is contained in:
parent
201d250df0
commit
0da475046e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user