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 8636841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:19:27+00:00 2026-06-12T10:19:27+00:00

What does a DC correspond to in Windows? I know I can get an

  • 0

What does a DC correspond to in Windows? I know I can get an HDC from an HWND or an HMONITOR. Does that mean that a window’s DC is an alias or proxy for its monitor’s DC? Windows allows you to say that a window class should have its own DC, so it seems like they’re not the same DC, although the Windows API also seems to support having a parent-child relationship between DCs. Would I find the monitor’s DC to be one of the parent DCs?

What happens if a window spans multiple monitors? The Windows API seems to only support getting a single HDC back from a window and getting a single HGLRC from an HDC. I’ve read that OpenGL doesn’t support having a full-screen window span multiple monitors and thus you must have multiple windows to accomplish this.

Would an SLI/Crossfire system be a single GLRC?

It seems to me that a GLRC is what most closely resembles a graphics system. The GLRC represents a single graphics system. The DCs represent the outputs. A GLRC can draw to any DCs that are associated with the outputs connected to the graphics system and any child DCs of those DCs. You can also have multiple monitors and multiple graphics cards, each of which are paired together, and thus each GLRC paired with each DC.

Correct or confirm?

  • 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-12T10:19:28+00:00Added an answer on June 12, 2026 at 10:19 am

    A device context in Windows is a surface that can (theoretically) be drawn to, and may well be visible to a display. Windows have device contexts, as does the desktop window and monitors. Individual windows can share device contexts; this can happen with subwindows that represent simple controls and so forth.

    Device contexts don’t have parent/child relationships in the way you mean. The whole CS_PARENTDC thing is about the clipping rectangle for the window’s device context.

    A window has a single device context, period (it’s a bit more complex than that if the window doesn’t use CS_OWNDC, but you should always use that when dealing with OpenGL), no matter where the window goes. The term “device context” should not be confused with “monitor” or any actual hardware. It is simply a surface that you can perhaps draw to.

    As for OpenGL, device contexts only have a relatively loose association to rendering contexts. It is legal to use any device context with an RC as long as that RC was created with the same pixel format that the new DC has. So you can set a pixel format on DC1, make an RC with it, then set the same pixel format on DC2, and you can use wglMakeCurrent with DC1 or DC2 and that RC.

    How multimonitor stuff works with OpenGL depends entirely on the GPU setup. The ICD mechanism that allows OpenGL to work on Windows only allows for a single driver to be installed. So if you have two cards in your system, each plugged into separate monitors, with two different drivers, OpenGL will only recognize one of them. Attempting to draw to a DC that is partially on the other GPU’s screen will have unpredictable results.

    Now, if you have one card feeding multiple monitors, OpenGL doesn’t care. The issue is the number of independent, visible graphics processors.

    That being said, the whole point of SLI/Crossfire is to pretend that two GPUs are actually just one. As such, you have one driver, the OS only really sees one GPU, and only one of those cards outputs to monitors. Thus, OpenGL works exactly as it would for one card feeding multiple monitors.

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

Sidebar

Related Questions

Does anyone know how one can restrict push to some git repository branch based
Is there a way to use form fields that does not correspond to database
Does anyone know if there is a way to generate different code in the
Does anyone know of a free tool, similar to what is built into Visual
Does anyone know why UsernameExists wont return True. I must have my syntax messed
Does anyone out there know how to integrate ContentFlow ( http://www.jacksasylum.eu/ContentFlow ) and Lightbox2
Does anyone know of a mechanism in Sybase ASA 9 / Sybase SQL Anywhere
Does anybody know why this function, when passed an invalid date (e.g. timestamp) to
How to increase the TCP receive window for a specific socket? - I know
What is the implementation of GCC's (4.6+) __builtin_clz ? Does it correspond to some

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.