How do I find handle of the taskbar

  • Thread starter Thread starter Sanjeev Sharma
  • Start date Start date
S

Sanjeev Sharma

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++.
 
Sanjeev Sharma wrote:

> 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++.


http://www.nirsoft.net/utils/winlister.html
(Enable "Display Hidden Windows" option)

http://www.nirsoft.net/utils/winexp.html
 
On Jul 11, 7:12?am, Sanjeev Sharma
<SanjeevSha...@discussions.microsoft.com> wrote:
> 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


"Sanjeev Sharma" <SanjeevSharma@discussions.microsoft.com> wrote in message news:4C0BF128-D0BA-48E0-BD20-45881CA003C4@microsoft.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++.
 
Back
Top