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
// rebuilt)
// For Mingw32, causes a link error. (VZ: why?)
-#if defined( __WXDEBUG__) && !defined(__MINGW32__) && !defined(_MSC_VER)
+#if defined( __WXDEBUG__) && !defined(__MINGW32__) /* && !defined(_MSC_VER) */
#define wxDATETIME_DONT_INLINE
#undef inline
// ----------------------------------------------------------------------------
// only define this once, when included from datetime.cpp
-#if 1 // def wxDEFINE_TIME_CONSTANTS
+#ifdef wxDEFINE_TIME_CONSTANTS
const long wxDateTime::TIME_T_FACTOR = 1000l;
#endif // wxDEFINE_TIME_CONSTANTS
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
m_windowId = (id < 0 ? NewControlId() : id);
- long tabStyle = 0;
+ long tabStyle = WS_CHILD;
if (m_windowStyle & wxTC_MULTILINE)
tabStyle |= TCS_MULTILINE;
if (m_windowStyle & wxTC_RIGHTJUSTIFY)