Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing from shifting primary to secondary display using Core Graphics API's.



Dear List,

I am developing a carbon application and using Core Graphics API;s in
the same. I have two issues and would be great if this forum could
suggest some alternatives:

I have dual headed card in my machine and have attached multiple
monitors and i want to disable the mirroring and preventing the user
from shifting primary monitor to secondary.

I am able to disable the mirror using below code snippet:
    void disableMirror()
{
    CGDisplayConfigRef config;
     CGDisplayErr err = noErr;
     err = CGBeginDisplayConfiguration(&config);
     err = CGConfigureDisplayMirrorOfDisplay(config,
CGMainDisplayID(), kCGNullDirectDisplay);
    error = CGCompleteDisplayConfiguration(config, kCGConfigurePermanently);
}


But Is there any API / way to avoid/disable the user from shifting
primary display to secondary ?
i.e the user should not be able to shift primary display to secondary
from SystemPreference->Arrangement

Is it possible ? Please comment.

Best Wishes,
Rodney.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.