Solved

Get subclass information (winapi)

Posted on 2011-02-28
1
328 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 500 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now