]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/msw/ole/automtn.h
Changed wxImage::ConvertAlphaToMask() return type to bool.
[wxWidgets.git] / interface / wx / msw / ole / automtn.h
index 818169b0b19e8659118d414bcf2dcfac75cde75e..9e0359177b0cb65275eef42a180146745aa7850f 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     interface of wxAutomationObject
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /**
@@ -33,7 +33,7 @@
     @onlyfor{wxmsw}
 
     @library{wxcore}
-    @category{misc}
+    @category{data}
 
     @see wxVariant
 */
@@ -81,10 +81,23 @@ public:
     */
     bool CreateInstance(const wxString& classId) const;
 
+    /**
+        Checks if the object is in a valid state.
+
+        Returns @true if the object was successfully initialized or @false if
+        it has no valid IDispatch pointer.
+
+        @see GetDispatchPtr()
+     */
+    bool IsOk() const;
+
     /**
         Gets the IDispatch pointer.
+
+        Notice that the return value of this function is an untyped pointer but
+        it can be safely cast to @c IDispatch.
     */
-    IDispatch* GetDispatchPtr() const;
+    void* GetDispatchPtr() const;
 
     /**
         Retrieves the current object associated with a class id, and attaches the