Get ready
Windows 7 Beta has been publicly released and can be downloaded from the http://www.microsoft.com/windows/windows-7/beta-download.aspx. W7 has made a great improvement on the taskbar, and you can look at the new features of the taskbar http://blogs.msdn.com/e7/archive/2008/11/20/ Happy-anniversary-windows-on-the-evolution-of-the-taskbar.aspx. If you want to develop Windows 7 it's a good idea to look at the white paper, from http://code.msdn.microsoft.com/PDC08WhitePapers/Release/ProjectReleases.aspx? releaseid=1797 download. Our development of the taskbar will use Windows 7 taskbar enhancements. Here we mainly implement the display of progress in the taskbar icon (Overlay Icons and Progress Bars). You may also need to use the Windows 7 SDK Beta during the implementation process.
Begin
First find the Shobjidl.idl file in the Windows SDK and download it if you do not have the SDK installed. This is an interface definition language file, and in order to make it easy to invoke, we can put similar
1HRESULT SetProgressValue(
2 [in] HWND hwnd,
3 [in] ULONGLONG ullCompleted,
4 [in] ULONGLONG ullTotal);
This interface declaration is changed to
1HRESULT SetProgressValue(
2 [in] long hwnd,
3 [in] ULONGLONG ullCompleted,
4 [in] ULONGLONG ullTotal);
Which is to change the HWND type to long. Then with MIDL will be changed the IDL file to generate binary TLB file, Shobjtlb.tlb is the generated file, Shobjidl.idl is the original file.
Then use TlbImp to generate the managed DLL file with the TLB file.