X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6eefca4fb7793a8d6bc02e69694735cb3e5fc230..e4e0d4702bea68d24a0c0e859312793556cc6549:/interface/wx/msw/ole/automtn.h diff --git a/interface/wx/msw/ole/automtn.h b/interface/wx/msw/ole/automtn.h index c351d20e88..916bc1b80d 100644 --- a/interface/wx/msw/ole/automtn.h +++ b/interface/wx/msw/ole/automtn.h @@ -31,7 +31,15 @@ enum wxAutomationInstanceFlags instance failed, we should call wxAutomationObject::CreateInstance() to create a new one. */ - wxAutomationInstance_CreateIfNeeded = 1 + wxAutomationInstance_CreateIfNeeded = 1, + + /** + Do not show an error message if no existing instance is currently + running. + + All other errors will still be reported as usual. + */ + wxAutomationInstance_SilentIfNone = 2 }; @@ -134,6 +142,10 @@ public: If attaching to an existing object failed and @a flags includes wxAutomationInstance_CreateIfNeeded flag, a new object will be created. + Otherwise this function will normally log an error message which may be + undesirable if the object may or may not exist. The + wxAutomationInstance_SilentIfNone flag can be used to prevent the error + from being logged in this case. Returns @true if a pointer was successfully retrieved, @false otherwise.