[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 865
  • Last Modified:

Switching clone and extended display mode on multiple Monitor

Guys, Any one know how to switch between clone display mode and extended display mode programmatically?
 I am working in Delphi 7, using Nvdia  Geforce FX 5200 with 2 monitors display

Purno
0
matelindonesia
Asked:
matelindonesia
  • 2
  • 2
1 Solution
 
pcsentinelCommented:
should be something like

ShellExecute(Handle, 'Open',
'rundll32.exe', 'NvCpl.dll,dtcfg setview 2 clone',
nil, SW_NORMAL); //clone

ShellExecute(Handle, 'Open',
'rundll32.exe', 'NvCpl.dll,dtcfg setview 2 hspan',
nil, SW_NORMAL); //horizontal span

sorry can't test right now

you can get the info from

http://download.developer.nvidia.com/developer/SDK/Individual_Samples/DEMOS/common/NvCpl.zip

which is the nvidia control panel api

regards
0
 
matelindonesiaAuthor Commented:
Wow, thanks for u’r answer sentinel

U answered first question in clone mode , but not in second,
I mean extend desktop, not horizontal span mode,  If span mode windows detect as one monitor, but in extend mode windows will detect as 2 monitors desktop

Would U please help me one more, about extend dekstop

Thanks very much

0
 
pcsentinelCommented:
try this

ShellExecute(Handle, 'Open',
'rundll32.exe', 'NvCpl.dll,dtcfg setview 1 dualview',
nil, SW_NORMAL); //dual view

I've had do do this in the blind as my twin screen isn't working today

You may have to reboot but not sure

If you download from the above link it contains a pdf, check out page 26 which covers this area

regards
0
 
matelindonesiaAuthor Commented:
Thanks pc sentienel

I got the answer before yours coming :)
Any way thanks very much

btw,
I just posted other question, about how if using radeon graphic, could you help me, where url address to download radeon developer control panel manual guide

regards
0
 
Paco66Commented:
I have try with my Samsung R580 Notebook with NVIDIA GEFORCE QT 330M.

It works ok running in windows XP, (changing setview 2 to setview 1 in the examples)
but does not work with Windows7.

What could be the cause?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now