]> git.saurik.com Git - wxWidgets.git/commit - include/wx/msw/ole/automtn.h
Allow wxAutomationObject::GetInstance() create new instance if needed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Nov 2010 13:30:37 +0000 (13:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Nov 2010 13:30:37 +0000 (13:30 +0000)
commit6eefca4fb7793a8d6bc02e69694735cb3e5fc230
tree578fb5326704e37bd46d1f1c5af2beab99d15e46
parent27d7687903b04c56878597fefccf3daafd0a58fa
Allow wxAutomationObject::GetInstance() create new instance if needed.

When getting an instance of an OLE automation object, it is often useful to
connect to the existing instance if any or start a new one otherwise. Make
GetInstance() behave like this by default while still allowing to use the
wxAutomationInstance_UseExistingOnly flag to reestablish the old behaviour.

Also improve the error reporting in wxAutomationObject.

See #12489.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/msw/ole/automtn.h
interface/wx/msw/ole/automtn.h
samples/oleauto/oleauto.cpp
src/msw/ole/automtn.cpp