adding "default" window border type

This commit is contained in:
danm%netscape.com 1999-08-08 03:08:24 +00:00
Родитель 846f8b7e79
Коммит 47baece26c
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -345,6 +345,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
case eWindowType_dialog:
if (aInitData &&
aInitData->mBorderStyle != eBorderStyle_all &&
aInitData->mBorderStyle != eBorderStyle_default &&
(aInitData->mBorderStyle == eBorderStyle_none ||
!(aInitData->mBorderStyle & eBorderStyle_title)))
{
@ -361,6 +362,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
case eWindowType_toplevel:
if (aInitData &&
aInitData->mBorderStyle != eBorderStyle_all &&
aInitData->mBorderStyle != eBorderStyle_default &&
(aInitData->mBorderStyle == eBorderStyle_none ||
!(aInitData->mBorderStyle & eBorderStyle_resizeh)))
wDefProcID = kWindowDocumentProc;
@ -384,6 +386,8 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
if (aInitData && aInitData->mBorderStyle != eBorderStyle_all)
{
if (aInitData->mBorderStyle == eBorderStyle_none ||
aInitData->mBorderStyle == eBorderStyle_default &&
windowType == eWindowType_dialog ||
!(aInitData->mBorderStyle & eBorderStyle_close))
goAwayFlag = false;
}