Changed back inline/const things

wxTabCtrl must have WS_CHILD window style
small access.cpp tweaks (call QueryInterface)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-02-17 12:43:47 +00:00
parent ae23a52a16
commit e0496eaaa4
4 changed files with 8 additions and 5 deletions

View File

@@ -594,8 +594,11 @@ STDMETHODIMP wxIAccessible::get_accChild ( VARIANT varChildID, IDispatch** ppDis
wxIAccessible* objectIA = child->GetIAccessible();
if (!objectIA)
return E_FAIL;
*ppDispChild = objectIA;
objectIA->AddRef();
if (objectIA->QueryInterface(IID_IDispatch, (LPVOID*) ppDispChild) != S_OK)
return E_FAIL;
(*ppDispChild)->AddRef();
return S_OK;
}
else