[edit] Never mind - didn't read all of your post.
I'm sure there's a native way of doing it - will have a look.
(although - if you call GetActiveWindow immediately after creating the graphics object, there's [virtually] zero chance of it being wrong).
I'm sure there's a native way of doing it - will have a look.
(although - if you call GetActiveWindow immediately after creating the graphics object, there's [virtually] zero chance of it being wrong).