Switching clone and extended display mode on multiple Monitor

Posted on 2005-05-15
Last Modified: 2013-05-30
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

Question by:matelindonesia
    LVL 11

    Accepted Solution

    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

    which is the nvidia control panel api


    Author Comment

    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

    LVL 11

    Expert Comment

    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


    Author Comment

    Thanks pc sentienel

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

    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


    Expert Comment

    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?

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now