r=jkobal, a=brendan
Frame Windows should be owned by the passed in parent, not HWND_DESKTOP
This commit is contained in:
mkaply%us.ibm.com 2000-08-23 00:00:57 +00:00
Родитель be29150ea1
Коммит 936f8354de
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -101,11 +101,17 @@ void nsFrameWindow::RealDoCreate( HWND hwndP, nsWindow *aParent,
// Assume frames are toplevel. Breaks if anyone tries to do MDI, which
// is an extra bonus feature :-)
HWND hwndOwner;
if (hwndP) {
hwndOwner = hwndP;
} else {
hwndOwner = HWND_DESKTOP;
} /* endif */
hwndFrame = WinCreateWindow( HWND_DESKTOP,
WC_FRAME,
0, 0, // text, style
0, 0, 0, 0, // position
HWND_DESKTOP,
hwndOwner,
HWND_TOP,
0, // ID
&fcd, 0);