Solved

Get subclass information (winapi)

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now