TSP Solver and Generator
shobjidl.h
Go to the documentation of this file.
1 
21 #ifndef _SHOBJIDL_H
22 #define _SHOBJIDL_H
23 
24 #define INITGUID
25 #include <windows.h>
26 
27 #ifndef DOXYGEN_EXCLUDE
28 DEFINE_GUID(CLSID_TaskbarList, 0x56fdf344,0xfd6d,0x11d0,0x95,0x8a,0x00,0x60,0x97,0xc9,0xa0,0x90);
29 DEFINE_GUID(IID_ITaskbarList3, 0xea1afb91,0x9e28,0x4b86,0x90,0xe9,0x9e,0x9f,0x8a,0x5e,0xef,0xaf);
30 #endif
31 
32 enum TBPFLAG {
35 
38 
40  TBPF_NORMAL = 0x2,
41 
43  TBPF_ERROR = 0x4,
44 
47 };
48 
49 #ifndef DOXYGEN_EXCLUDE
50 DECLARE_INTERFACE_(ITaskbarList3, IUnknown)
51 {
52  /*** IUnknown methods ***/
53  STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
54  STDMETHOD_(ULONG, AddRef) (THIS) PURE;
55  STDMETHOD_(ULONG, Release) (THIS) PURE;
56  /*** ITaskbarList specific methods ***/
57  STDMETHOD(HrInit) (THIS) PURE;
58  STDMETHOD(AddTab) (THIS_ HWND hwnd) PURE;
59  STDMETHOD(DeleteTab) (THIS_ HWND hwnd) PURE;
60  STDMETHOD(ActivateTab) (THIS_ HWND hwnd) PURE;
61  STDMETHOD(SetActiveAlt) (THIS_ HWND hwnd) PURE;
62  /*** ITaskbarList2 specific methods ***/
63  STDMETHOD(MarkFullscreenWindow) (THIS_ HWND hwnd, BOOL fFullscreen) PURE;
64  /*** ITaskbarList3 specific methods (only used ones) ***/
65  STDMETHOD(SetProgressValue) (THIS_ HWND hwnd, ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
66  STDMETHOD(SetProgressState) (THIS_ HWND hwnd, TBPFLAG tbpFlags) PURE;
67 };
68 #else
69 // This block is strictly for doxygen.
75 public interface class ITaskbarList3: public ITaskbarList2 {
84  HRESULT SetProgressState(HWND hwnd, TBPFLAG tbpFlags);
91  HRESULT SetProgressValue(HWND hwnd, ULONGLONG ullCompleted, ULONGLONG ullTotal);
92 };
93 #endif
94 
95 #endif /* _SHOBJIDL_H */
HRESULT SetProgressState(HWND hwnd, TBPFLAG tbpFlags)
Sets the type and state of the progress indicator displayed on a taskbar button.
The progress indicator turns red to show that an error has occurred in one of the windows that is bro...
Definition: shobjidl.h:43
Exposes methods that control the taskbar.
Definition: shobjidl.h:75
Stops displaying progress and returns the button to its normal state.
Definition: shobjidl.h:34
TBPFLAG
Definition: shobjidl.h:32
The progress indicator does not grow in size, but cycles repeatedly along the length of the taskbar b...
Definition: shobjidl.h:37
HRESULT SetProgressValue(HWND hwnd, ULONGLONG ullCompleted, ULONGLONG ullTotal)
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage complet...
The progress indicator turns yellow to show that progress is currently stopped in one of the windows ...
Definition: shobjidl.h:46
The progress indicator grows in size from left to right in proportion to the estimated amount of the ...
Definition: shobjidl.h:40