Bug 173791. Accessibility API bug: GWL_ID (Control ID) is only supposed to report 0 (UI) or 1 (content). r=jgaunt, sr=bzbarsky, a=roc+moz

This commit is contained in:
aaronl%netscape.com 2002-10-25 00:03:47 +00:00
Родитель a596e22ded
Коммит 415f31da9b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1546,11 +1546,11 @@ nsresult nsWindow::StandardWindowCreate(nsIWidget *aParent,
#ifdef MOZ_UNICODE
LONG contentType = aInitData? aInitData->mContentType: (parent? nsToolkit::mGetWindowLong(parent, GWL_ID): -1);
LONG isContent = (contentType == 1 || contentType == 2);
nsToolkit::mSetWindowLong(mWnd, GWL_ID, contentType);
nsToolkit::mSetWindowLong(mWnd, GWL_ID, isContent);
#else
LONG contentType = aInitData? aInitData->mContentType: (parent? ::GetWindowLong(parent, GWL_ID): -1);
LONG isContent = (contentType == 1 || contentType == 2);
::SetWindowLong(mWnd, GWL_ID, contentType);
::SetWindowLong(mWnd, GWL_ID, isContent);
#endif
// call the event callback to notify about creation