Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8103397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:32:19+00:00 2026-06-05T23:32:19+00:00

This is a bit of an edge case but I am developing a game

  • 0

This is a bit of an edge case but I am developing a game which uses multiple monitors. For reasons outside the scope of this question, I am using a ‘multi-device method’ rather than swap chains. My code is similar to the following sample:

http://www.codesampler.com/dx9src/dx9src_1.htm#dx9_multiple_devices

What I’m struggling with, and what I can find no documentation about, is whether it’s possible to run both windows in true full-screen (i.e d3dpp.Windowed = FALSE;). Currently I’m getting an ‘invalid params’ HRESULT when calling CreateDevice the second time. It works fine if one of the windows is full-screen, but not both. I’m hoping there’s a setting to make this work though…

Cheers in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:32:21+00:00Added an answer on June 5, 2026 at 11:32 pm

    According to the Direct3D 9 documentation (Working with Multiple Monitor Systems): “The practical implication is that a multiple monitor application can place several devices in full-screen mode, but only if all these devices are for different adapters, were created by the same Direct3D9 object, and all share the same focus window.”

    You’ll notice that there are two window handles per device initialization; the presentation window, and the focus window. The focus window (passed in to IDirect3D9::CreateDevice) is used for handling events such as switching from foreground to background, or Alt+Tab. The presentation window is passed in to the D3DPRESENT_PARAMETERS structure and is used solely as a canvas for Direct3D.

    You should mark one of the windows you create (probably the first one) as the focus window. Share the focus window across devices but keep the “canvas” (presentation) windows separate.

    EDIT: This may help you as well.

    create a focus window for both devices.

    (optionally) create a device window for the first adapter.

    create a device window for the second adapter.

    create a direct3d9 context.

    use this to create both devices.

    create the first fullscreen device using the shared focus window and (optionally) the first device window.

    create the second fullscreen device using the shared focus window and the second device window.

    reset the first device.

    the shared focus window is passed directly as a parameter to CreateDevice.

    the device windows are passed in the presentation parameters structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a bit bleeding edge, but here's the question anyway: Given
Bit of an edge case, but any idea why &&= would behave this way?
I apologize if this question is a bit broad, but I'm having a difficult
It's a bit basic question. But, I fail to understand how to solve it.
It is a bit pushing the edge, but I have the following situation with
This might have to be broken down a bit but what i want to
this is probably a pretty basic question but I can't seem to get OpenGL
I have an Android app which uses a bit of OpenGL running on a
Perhaps this is a stupid question, but I'm trying to use BGL's dijkstra_shortest_paths ,
This bit of code is taking almost a half second to execute. Could somebody

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.