Hi Vilius,
You need to send a TB_MOVEBUTTON message to change order of taskbar buttons.
TB_MOVEBUTTON Documentation:
http://msdn.microsoft.com/en-us/library/bb787387%28VS.85%29.aspx)
There is a helpful CodeProject article that uses the same method for
arranging taskbar buttons. You can take a look at it:
http://www.codeproject.com/KB/shell/taskbarsorter.aspx
You can also add, delete or activate any button on taskbar using
ITaskbarList interface functions:
ITaskbarList::AddTab
ITaskbarList::DeleteTab
ITaskbarList::ActivateTab
You can find the C# signature and sample source code for the ITaskbarList
interface at:
http://www.pinvoke.net/default.aspx/shell32/ITaskbarList.html
--
Visit my blog: http://csharptips.wordpress.com/
Post by Vilius MockûnasHi,
Windows 7 has this feature.
What API to use to do it programmatically ?
thnaks
Vilius
.