Use HWND_TOPMOST instead of HWNT_TOP when setting the window z-order for popups.
git-svn-id: svn://10.0.0.236/trunk@47159 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -702,10 +702,16 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||
if (mWnd) {
|
||||
if (bState) {
|
||||
DWORD flags = SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW;
|
||||
if ((mIsVisible) || (mWindowType == eWindowType_popup)) {
|
||||
flags |= SWP_NOZORDER;
|
||||
}
|
||||
|
||||
if (mWindowType == eWindowType_popup) {
|
||||
flags |= SWP_NOACTIVATE;
|
||||
}
|
||||
::SetWindowPos(mWnd, HWND_TOPMOST, 0, 0, 0, 0, flags);
|
||||
} else {
|
||||
::SetWindowPos(mWnd, HWND_TOP, 0, 0, 0, 0, flags);
|
||||
}
|
||||
}
|
||||
else
|
||||
::ShowWindow(mWnd, SW_HIDE);
|
||||
|
||||
Reference in New Issue
Block a user