changes in taskbar
-
hello everybody, Is there any way to get the notification of changes in taskbar. E.g: Any new window started to display in taskbar? Any existing window closed in taskbar? Any windows in taskbar is flashing in taskbar? I need to get such notifications. Help me please! -Cvaji
-
hello everybody, Is there any way to get the notification of changes in taskbar. E.g: Any new window started to display in taskbar? Any existing window closed in taskbar? Any windows in taskbar is flashing in taskbar? I need to get such notifications. Help me please! -Cvaji
I personally don't know any specific way to do that, but if no such turns up you could try hooking into explorer.exe and find and subclass the tray somehow, using spy++ it seems that the taskbar is actually a toolbar, so you should be able to "capture" messages sent to it when new buttons are added or buttons are removed. Another aproach would be to install a global message hook and filter out messages targeted at the taskbar and do what you need with them (relay the events to your application or so...). I hope if nothing better appears then this can give you a starting point to do it...good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
I personally don't know any specific way to do that, but if no such turns up you could try hooking into explorer.exe and find and subclass the tray somehow, using spy++ it seems that the taskbar is actually a toolbar, so you should be able to "capture" messages sent to it when new buttons are added or buttons are removed. Another aproach would be to install a global message hook and filter out messages targeted at the taskbar and do what you need with them (relay the events to your application or so...). I hope if nothing better appears then this can give you a starting point to do it...good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
I want to capture messages (WM_PAINT) to task bar in my application. Please provide any help.
Give a bit more details about what exactly you are trying to do, please.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
Give a bit more details about what exactly you are trying to do, please.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
hai thanks for the reply. Actually I want to filter WM_PAINT message of Taskbar as you mentioned in your first reply. When WM_PAINT message is executed in taksbar, I want to get that message in my application. May be subclassing may help to do it. Let me check that. -Cvaji