• Advertisement
Sign in to follow this  

Difference between device window and focus window

This topic is 2655 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

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
Advertisement
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
Sign in to follow this  

  • Advertisement