Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get subclass information (winapi)

Posted on 2011-02-28
1
Medium Priority
?
337 Views
Last Modified: 2012-05-11
Attached is an screenshot of the WinSpy++ application. I want to create an app to help me monitor how much time I spend on certain things. It would be good to monitor how much time spent per VS project, and per file in the project. It would also be good to monitor things like how much time I spend researching etc, but no need to comment on that. I'm more concerned about the below.

In the screen shot you can see I've got my VS2010 window, and two children deep is a node saying 000A083C GenericPane "Delivery.ascx". What you cannot see is that at the same tree level, there are 3 other 'GenericPanes' called "Properties" "Solution Explorer" and "DocumentOutline". If you're familiar with VS then you'll recognise them.

I would like to know the API used to get to "Delivery.ascx" pane - more specifically, get to the text "Delivery.ascx". If that cannot be done, then it would be good to at least get the list of all the panes (I can hard code it to ignore the other three panes).

Any help appreciated.
WinSpy.jpg
0
Comment
Question by:KiasChaos83
1 Comment
 
LVL 4

Accepted Solution

by:
parnasso earned 2000 total points
ID: 35004726
I think the two API calls you need are GetWindowText and EnumChildWindows.
GetWindowText  is for retrieve the text for every window (like "Delivery.ascx")
here you have the documentation http://msdn.microsoft.com/en-us/library/ms633520(v=vs.85).aspx

EnumChildWindows might be usefult for you get every window of your tree, here is a link to an example>

http://support.microsoft.com/kb/183009

I hope this is helpful
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question