Sign in to follow this  

Difference between focus and device window

This topic is 1597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What are each of them used for exactly? Right now I know that the focus window gets the input messages,but what's up with the device window?

Share this post


Link to post
Share on other sites

device window is the window where the backbuffer/render target is presented (shown). It is needed at the device creation time, to pass the window handle, BUT, you can change the window on which the buffer is shown by passing a different window handle at device.Present() function. if you pass null to that parameter, the implicit handle you passed at device creation is used.

 

Share this post


Link to post
Share on other sites

And let me add up to this (hold your jaw), that you can use a window handle of another process :). No kidding, just pass the handle to present in your app. you can get handles of windows out in the wild by many methos, such as get window by name/id and so. Of course, problem is to actualy know the stranger id or name, but the name usualy matches title of window (usualy).

Share this post


Link to post
Share on other sites

This topic is 1597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this