Apply part of patch [#25612] Windows 7 icon progress bar
[blender.git] / intern / ghost / intern / GHOST_WindowWin32.h
index a4d31f87ffa3e454ec93c2f877a98eadc58312cc..c3b7fdbd3f3bfd7563b54a1d6b0b4ca60884b502 100644 (file)
 
 #include "GHOST_Window.h"
 
+/* MinGW needs it */
+#ifdef FREE_WINDOWS
+#ifdef WINVER
+#undef WINVER
+#endif
+#define WINVER 0x0501
+#endif
+
+
+
 #include <windows.h>
+#include "GHOST_TaskbarWin32.h"
 
 
 #include <wintab.h>
@@ -217,6 +228,17 @@ public:
         */
        virtual GHOST_TSuccess invalidate();
 
+       /**
+     * Sets the progress bar value displayed in the window/application icon
+        * @param progress The progress %
+        */
+       virtual GHOST_TSuccess setProgressBar(float progress);
+       
+       /**
+        * Hides the progress bar in the icon
+        */
+       virtual GHOST_TSuccess endProgressBar();
+       
        /**
         * Returns the name of the window class.
         * @return The name of the window class.
@@ -324,6 +346,9 @@ protected:
        /** HCURSOR structure of the custom cursor */
        HCURSOR m_customCursor;
 
+       /** ITaskbarList3 structure for progress bar*/
+       ITaskbarList3 * m_Bar;
+
        static LPCSTR s_windowClassName;
        static const int s_maxTitleLength;