]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/ole/oleutils.h
what do we need a separate (from m_windowStyle) m_dialogStyle here for? removed
[wxWidgets.git] / include / wx / msw / ole / oleutils.h
index 1d19f4f763cc010e23a8456546334e470f73f2df..ca8e10c87727b21243e5a85a7ee4572acc62e367 100644 (file)
@@ -18,9 +18,8 @@
 
 #include "wx/defs.h"
 
-#if wxUSE_NORLANDER_HEADERS
-    #include <ole2.h>
-#endif
+// get IUnknown, REFIID &c
+#include <ole2.h>
 
 // ============================================================================
 // General purpose functions and macros
@@ -74,6 +73,12 @@ public:
 
     operator ULONG&() { return m_Value; }
     ULONG& operator=(ULONG value) { return m_Value = value; }
+    
+    wxAutoULong& operator++() { ++m_Value; return *this; }
+    const wxAutoULong operator++( int ) { wxAutoULong temp = *this; ++m_Value; return temp; }
+
+    wxAutoULong& operator--() { --m_Value; return *this; }
+    const wxAutoULong operator--( int ) { wxAutoULong temp = *this; --m_Value; return temp; }
 
 private:
     ULONG m_Value;