2

I would like to create a windowless taskbar button, just like Windows Live Messenger does it:

Windows live messenger taskbar icon

How can I do that in C#? The Windows API Code pack looks helpful, but I haven't found any way to create a taskbar button with it.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
main--
  • 3,873
  • 1
  • 16
  • 37
  • Are you specifically saying that it shows their profile image and then even has an email button on it? – Mike Perrenoud Jun 06 '13 at 19:21
  • @MichaelPerrenoud Creating the button is not my problem, that's pretty easy with the Windows API Code Pack. I just don't know how I can create the icon in the taskbar. – main-- Jun 06 '13 at 19:25

1 Answers1

1

Create a hidden window (CreateWindow and then ShowWindow(hwnd, SW_HIDE). This is will make the taskbar show an icon.

Then use the ITaskbarList, ITaskbarList2, ITaskbarList3, ITaskbarList4 APIs to set a different thumbnail for the window.

Abhishek
  • 359
  • 1
  • 8