Calling new features of the Windows 7 taskbar in managed code

Source: Internet
Author: User
Tags new features

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.