Archived

This topic is now archived and is closed to further replies.

gph-gw

DC grabbing

Recommended Posts

I know theres a function for this, how do I get the dc for every window open? I want to take the image in it (including menus)? I guessed you have to get the hwnd using some kind of enum function. I don''t have the SDK reference installed right now and I don''t want to go to the MSDN site.

Share this post


Link to post
Share on other sites
Yeah, but I don''t think it gets each individual window, so if it''s overlapping I don''t know what''s under it.

Share this post


Link to post
Share on other sites
EnumWindows()
EnumChildWindows()

is what you''re looking for

menu''s don''t have a HWND though...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Thanks. By menus I meant each hwnd can have no more than one menu list, right? I''m just trying to get a screenshot of all windows at once, including overlapped parts.

Share this post


Link to post
Share on other sites