|
-
February 25th, 2010, 02:14 PM
#2
Re: getting the handles ?
You can use the Spy++ tool ( VisualCInstallFolder\Common7\Tools) to grab the window hierarchy from the desktop and then use FindWindowEx to navigate to the desired button/window.
On my machine running XP, from the destop the hierarchy is as follows
Code:
Title Class
Root NULL #32769 (Desktop)
L NULL Shell_Tray
L "start" Button
L NULL TrayNotifyWnd
L "11:02 AM" TrayClockWClass
L NULL SysPager
L NULL Button
Another way to approach this (and a more reliable way, imo) is to use Active Accessibility. AA gives you more control over accessing UI entities that may not be available using other windowing techniques (like FindWindow, EnumWindows, etc.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|