Find all Child windows
-
I am able to find the Parent Window but I would like to have the list of all its Child Windows, in order to find their Class Name & Window Name, can anyone help? I have used: [DllImport("user32.dll", CharSet = CharSet.Unicode)] static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle); [DllImport("user32.dll")] private static extern IntPtr FindWindow(string className, string windowName); Thanks in-advanced :((
-
I am able to find the Parent Window but I would like to have the list of all its Child Windows, in order to find their Class Name & Window Name, can anyone help? I have used: [DllImport("user32.dll", CharSet = CharSet.Unicode)] static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle); [DllImport("user32.dll")] private static extern IntPtr FindWindow(string className, string windowName); Thanks in-advanced :((
...and? You build your own list. There is no function that returns the entire child window handles tree. You have to build it yourself. I suggest reading the documentation on the EnumChildWindows[^] function.
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
...and? You build your own list. There is no function that returns the entire child window handles tree. You have to build it yourself. I suggest reading the documentation on the EnumChildWindows[^] function.
A guide to posting questions on CodeProject
How to debug small programs
Dave KreskowiakWhile I am waitting for a reply I found this and it works http://www.experts-exchange.com/Programming/Languages/.NET/Q\_26708666.html Thank you anyway :)
-
While I am waitting for a reply I found this and it works http://www.experts-exchange.com/Programming/Languages/.NET/Q\_26708666.html Thank you anyway :)
Member 10636998 wrote:
While I am waitting for a reply
That is called RESEARCH and should be done BEFORE posting the question.
Never underestimate the power of human stupidity RAH
-
Member 10636998 wrote:
While I am waitting for a reply
That is called RESEARCH and should be done BEFORE posting the question.
Never underestimate the power of human stupidity RAH
-
Sorry, I disagree with this reply. At least he made an effort of trying to find a solution. You're never sure to get a reply...
V.
(MQOTD rules and previous solutions)I am trying to encourage the OP to do some research before posting, I find 95% of my questions have already been answered somewhere, usually many times. Also note that I did not down vote the OP, that would have been very unreasonable.
Never underestimate the power of human stupidity RAH