Change pinned taskbar icon (windows 7)

后端 未结 9 1312
梦谈多话
梦谈多话 2020-11-29 22:45

I wan\'t to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe\

9条回答
  •  长情又很酷
    2020-11-29 23:15

    EDIT The info below is a bit obsolete; all new Windows 7 bits are now available as a managed API, available here: http://code.msdn.microsoft.com/WindowsAPICodePack

    There is a series of articles on the new Taskbar API by the debugging guru Sasha Goldshtein. You should have a look at the Overlay Icons and Progress Bars API.

    You can download the sample code from Windows 7 Taskbar Developer Resources on Microsoft Code. What you're looking for is the IMClient sample:

    The IMClient sample demonstrates how taskbar overlay icons and taskbar progress bars can light up an application’s taskbar button instead of relying on an additional dialog or on an icon in the system notification area (tray).

    alt text alt text alt text

    I believe this should help you achieve what you want.

提交回复
热议问题