init the window proc id to something valid so we don't get bit if it's not set (such as the hidden window). r=sdagely/sr=blake/a=asa. bug# 70355

This commit is contained in:
pinkerton%netscape.com 2001-06-20 05:28:39 +00:00
Родитель cd31b6f2df
Коммит 4cd9c9a299
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -364,7 +364,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
} else
mWindowType = (mIsDialog ? eWindowType_dialog : eWindowType_toplevel);
short wDefProcID;
short wDefProcID = kWindowDocumentProc;
Boolean goAwayFlag;
short hOffset;
short vOffset;
@ -534,7 +534,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
::SetWindowClass(mWindowPtr, kModalWindowClass);
// Setup the live window resizing
if ( mWindowType == eWindowType_toplevel ) {
if ( mWindowType == eWindowType_toplevel || mWindowType == eWindowType_invisible ) {
const UInt32 kWindowLiveResizeAttribute = (1L << 28); // BAD!!! our headers don't yet support this
::ChangeWindowAttributes ( mWindowPtr, kWindowLiveResizeAttribute, kWindowNoAttributes );