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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:52:24+00:00 2026-06-11T13:52:24+00:00

I am trying to stretch a desktop to two monitors using the ChangeDisplaySettingsEx function.

  • 0

I am trying to stretch a desktop to two monitors using the ChangeDisplaySettingsEx function. I want the desktop resolution to be 3840×1080 instead of 1920×1080 resolution. I tried the following:

 POINTL posPrimary={0};
 posPrimary.x=0
 posPrimary.y=0;

 DEVMODE mode_primary = {0};
 mode_primary.dmSize = sizeof(mode_primary);
 mode_primary.dmFields = DM_POSITION;
 mode_primary.dmPosition = posPrimary;
 mode_primary.dmPelsWidth = 3840;
 mode_primary.dmPelsHeight = 1080;

LONG status = ChangeDisplaySettingsEx(
    nameofMonitor,
    &mode_primary,
    nullptr, // reserved
   CDS_SET_PRIMARY | CDS_UPDATEREGISTRY,
    nullptr // no video parameter
);
  if (DISP_CHANGE_SUCCESSFUL != status) {
    printf("ChangeDisplaySettingsEx returned %d", status);
    return -__LINE__;
}

I also tried the SetDisplayConfig function:

SetDisplayConfig(0,NULL,0,NULL,SDC_TOPOLOGY_CLONE|SDC_APPLY);

SDC_TOPOLOGY_CLONE just clones the monitors while SDC_TOPOLOGY_EXTEND extends the desktop to the second display.

Any suggestions would be appreciated.

  • 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-11T13:52:25+00:00Added an answer on June 11, 2026 at 1:52 pm

    Windows 7 does not support “stretching” the desktop across multiple monitors. You can extend the desktop across multiple monitors, but you always have to pick which monitor will be the primary monitor. The task bar appears on the primary monitor and there is no way to have it stretch across to other monitors.

    Windows 8 has much better multi-monitor support, and allows a task bar on each monitor. You can configure the same task bar to be on all screens, or individual task bars with the icons for the windows on that screen. AFAIK, you still can’t have a single task bar stretched across all monitors.

    Update

    I was thinking a little more about this, and it occurred to me that it may be possible for a video card driver to present multiple monitors to Windows as a single device with the combined resolution. This configuration would be proprietary to the video card vendor, and you’d have to use their APIs to access the capability, if indeed it exists.

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

Sidebar

Related Questions

I'm trying to stretch a background image so it always fills the window. Using
I'm trying to make an image stretch to fit inside a div. However I
I am trying to make the vertical stretch to work as expected i WPF,
I'm trying to achieve the effect of having a horizontal gradient stretch the entire
I'm trying to stretch a navigation arrow image while preserving the edges so that
Simple question. I'm trying to stretch the contents of a webview so that the
am trying to goto a page from main window by using I have put
I am trying to make tile wallpaper in flex. I did stretch or normal
I'm trying to stretch the menu, almost like it's been done here: Stretch horizontal
I'm trying to have a large background image stretch to the size of the

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.