From 0da475046e1354a12de04815a21a849d3ade4cfd Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Tue, 22 Apr 2003 12:57:09 +0000 Subject: [PATCH] #202823 r=pedemont, sr=blizzard (platform specific) OS/2 only - tell titlebar to change text, not just frame window --- widget/src/os2/nsWindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/widget/src/os2/nsWindow.cpp b/widget/src/os2/nsWindow.cpp index 90aa27e01979..c623fea4643b 100644 --- a/widget/src/os2/nsWindow.cpp +++ b/widget/src/os2/nsWindow.cpp @@ -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; } }