EDN Admin
Well-known member
<span style="font-family:Arial;font-size:small <span style="font-size:13px;white-space
re <span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small <span style="font-size:11px;white-space:normal
Hello everybody.
<br/>
Sometimes it is needed to programmatically access the windows shells taskbar. In previous versions of Windows, it was firstly the Tab-Control, then (for example in XP) the Toolbar. E.g. in XP, to access the taskbar (which is actually nothing more than a standard Toolbar) you should find Explorer.exes windows in this hierarchy (of their classnames) : Shell_TrayWnd -> RebarWindow32 -> MSTaskSwWClass -> ToolbarWindow32. The last one - window named "Running Applications" of class "ToolbarWindow32" is the one which is usually subclassed.
<br/>
Now in Windows 7 things changed. The last window in that chain - the actual taskbar - is not standard Toolbar (ToolbarWindow32) anymore. It is the window with MSTaskListWClass class now! This window does not react on any Toolbar messages like TB_BUTTONCOUNT or TB_HITTEST, etc. So it is impossible to interact with taskbar anymore!
<br/>
Does anyone have any idea of how to access the Taskbar in Windows 7? Google gives nothing on MSTaskListWClass. Where can the documentation be found?
<br/>
P.S.: The ITaskbarList interface is very poor, so it aint an option
<br/>
Thank you in advance.
View the full article

Hello everybody.
<br/>
Sometimes it is needed to programmatically access the windows shells taskbar. In previous versions of Windows, it was firstly the Tab-Control, then (for example in XP) the Toolbar. E.g. in XP, to access the taskbar (which is actually nothing more than a standard Toolbar) you should find Explorer.exes windows in this hierarchy (of their classnames) : Shell_TrayWnd -> RebarWindow32 -> MSTaskSwWClass -> ToolbarWindow32. The last one - window named "Running Applications" of class "ToolbarWindow32" is the one which is usually subclassed.
<br/>
Now in Windows 7 things changed. The last window in that chain - the actual taskbar - is not standard Toolbar (ToolbarWindow32) anymore. It is the window with MSTaskListWClass class now! This window does not react on any Toolbar messages like TB_BUTTONCOUNT or TB_HITTEST, etc. So it is impossible to interact with taskbar anymore!
<br/>
Does anyone have any idea of how to access the Taskbar in Windows 7? Google gives nothing on MSTaskListWClass. Where can the documentation be found?
<br/>
P.S.: The ITaskbarList interface is very poor, so it aint an option

<br/>
Thank you in advance.
View the full article