How do I find handle of the taskbar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have rather two questions. First, where do I query technical stuff like
this(Q on Subject) about WIndows? And second the question itself. I need to
get handle for the taskbar but I don't know its window name so as to use
'FindWindow'. Anyother way? The code may be specific to WinXP and may be
coded in VB or C++.
 
I have rather two questions. First, where do I query technical stuff like
this(Q on Subject) about WIndows? And second the question itself. I need to
get handle for the taskbar but I don't know its window name so as to use
'FindWindow'. Anyother way? The code may be specific to WinXP and may be
coded in VB or C++.

Google is your friend <g>. Entering "Taskbar Handle" discovered ...

hTaskbar := FindWindow('Shell_TrayWnd', Nil );

Alan Lloyd
 
Alan gave the information you need. To determine Window class, you may use one of these tools:

Spy++ (part of Visual Studio package)

or

Winspector - Ultimate Windows Message Spy:
http://www.windows-spy.com/


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


I have rather two questions. First, where do I query technical stuff like
this(Q on Subject) about WIndows? And second the question itself. I need to
get handle for the taskbar but I don't know its window name so as to use
'FindWindow'. Anyother way? The code may be specific to WinXP and may be
coded in VB or C++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top