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

git-svn-id: svn://10.0.0.236/trunk@132476 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com 2002-10-25 00:03:47 +00:00
parent 3961099bb6
commit fdf6c4e28e

View File

@ -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