r=pedemonte, sr=blizzard
OS/2 only - don't add the hidden window to the task list
This commit is contained in:
mkaply%us.ibm.com 2002-05-02 21:26:09 +00:00
parent 65a183cd7a
commit fca5228607
2 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,7 @@ extern PRBool gRollupConsumeRollupEvent;
extern PRBool gJustGotDeactivate;
extern HWND gHwndBeingDestroyed;
BOOL nsFrameWindow::fHiddenWindowCreated = FALSE;
nsFrameWindow::nsFrameWindow() : nsWindow()
{
@ -110,6 +111,13 @@ void nsFrameWindow::RealDoCreate( HWND hwndP, nsWindow *aParent,
fcd.flCreateFlags = GetFCFlags();
if (!fHiddenWindowCreated) {
if ((aRect.x == 0) && (aRect.y == 0) && (aRect.height == 100) && (aRect.width == 100)) {
fcd.flCreateFlags &= ~FCF_TASKLIST;
fHiddenWindowCreated = TRUE;
}
}
// Assume frames are toplevel. Breaks if anyone tries to do MDI, which
// is an extra bonus feature :-)
mFrameWnd = WinCreateWindow( HWND_DESKTOP,

View File

@ -77,6 +77,7 @@ class nsFrameWindow : public nsWindow
friend MRESULT EXPENTRY fnwpFrame( HWND, ULONG, MPARAM, MPARAM);
virtual ULONG WindowStyle();
static BOOL fHiddenWindowCreated;
};
#endif