Monday, May 24, 2010

Another programming question?

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?

Another programming question?
Use Win32 API





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





while h %26lt;%26gt; 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
Reply:You might try this website, they have a lot of tutorials and source code for many different prog. langs. including .NET
Reply:try groups.google.com. This taps into many newsgroups and has a good historical record of questions people have asked in the past.
Reply:Dunno. If you find out, could you email me at ian807@yahoo.com?


No comments:

Post a Comment