Sign in to follow this  
BuraCULa

Difference between device window and focus window

Recommended Posts

Hi.Im very confused.What is the difference between hDeviceWindow and hFocusWindow.I created a full secreen device,and hDeviceWindow is NULL, but it still collects message like mouse clicks.What job does devicewindow have?

Share this post


Link to post
Share on other sites
hFocusWindow is generally an Application Window tha handles all meessages like mouse clicks etc.
hDeviceWindow is the device window which acts as front buffer where we present or copy our back buffer, this is a child of application window if used.

Generally we use Single Window Interface so pass null to this which instructs D3D to render to client area of Application Window which is ideal case most of the time.
But if you have multiple child windows and want to render to one of them pass its handle to hDeviceWindow.

Share this post


Link to post
Share on other sites

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