Question:
another programming question?
wolfgangmeyers
2006-08-12 17:46:22 UTC
does anyone know where i can find a decent tutorial on how to use enumchildwindows? Don't say try googling, I've been doing that for an hour :( I'm using Visual Studio .NET, c#. I'm trying to get all of the window handles in the taskbar so i can replace it. I've succeeded in getting all of the main window handles, but there is no builtin .net method that I know of to get the child windows of a process. Any help?
Four answers:
Lord Soth
2006-08-13 04:02:32 UTC
Use Win32 API



h := FindWindowEx(h1, 0, nil, nil) to get first child of window with handle h1 then use



while h <> 0 h := FindWindowEx(h1,h,nil,nil) to get each next child window.



You can use this recursively to obtain the whole window tree and use GetParent(HWND) Win32 API call to get parent of any window. Syntaxes are of Delphi but comprehensible to translate to C.



Loren Soth
anonymous
2006-08-13 01:11:32 UTC
try groups.google.com. This taps into many newsgroups and has a good historical record of questions people have asked in the past.
Delfin
2006-08-13 01:04:46 UTC
You might try this website, they have a lot of tutorials and source code for many different prog. langs. including .NET
Irritable
2006-08-13 00:51:56 UTC
Dunno. If you find out, could you email me at ian807@yahoo.com?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...