Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Get subclass information (winapi)

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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 viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

829 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