main--
main--

Reputation: 3973

Windowless Taskbar Button

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.

Upvotes: 2

Views: 325

Answers (1)

Abhishek
Abhishek

Reputation: 359

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.

Upvotes: 1

Related Questions