This commit is contained in:
spider 1998-06-25 05:39:02 +00:00
Родитель da6cb28eba
Коммит ff4477a14e
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -262,6 +262,12 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent,
// save the event callback function
mEventCallback = aHandleEventFunction;
if (0==aNativeParent) {
parentWidget = (Widget) aInitData ;
}
else
parentWidget = (Widget)aNativeParent;
// keep a reference to the toolkit object
if (aContext) {
mContext = aContext;
@ -279,16 +285,10 @@ void nsWindow::CreateWindow(nsNativeWidget aNativeParent,
kDeviceContextIID,
(void **)&mContext);
if (NS_OK == res) {
mContext->Init(nsnull);
mContext->Init(parentWidget);
}
}
if (0==aNativeParent) {
parentWidget = (Widget) aInitData ;
}
else
parentWidget = (Widget)aNativeParent;
Widget frameParent = 0;
if (!aNativeParent) {