CGConfigureDisplayOrigin
CGConfigureDisplayOrigin
- Subject: CGConfigureDisplayOrigin
- From: Niyaz <email@hidden>
- Date: Wed, 13 Apr 2005 10:50:35 +0530
- Importance: Normal
Hi All,
I tried using CGConfigureDisplayOrigin API to shift the global desktop
origin. Wrote the code as below:
/******************************** CODE BEGINS HERE
*****************************************/
CGError err;
GDisplayConfigRef configRef;
CGDirectDisplayID display;
CGDisplayCoord x, y;
boolean_t b;
size_t h,w;
CGRect cgrect;
CGDisplayErr disperr;
err = CGBeginDisplayConfiguration(&configRef);
display = CGMainDisplayID();
b = CGDisplayIsActive(kCGDirectMainDisplay);
b = CGDisplayIsMain(kCGDirectMainDisplay);
cgrect = CGDisplayBounds(kCGDirectMainDisplay);
err = CGConfigureDisplayOrigin(configRef,kCGDirectMainDisplay,555,555);
if(err){
err = CGCancelDisplayConfiguration(configRef);
}
else{
err = CGCompleteDisplayConfiguration(configRef,1);
}
/******************************** CODE ENDS HERE
*****************************************/
But, to my surprise the change didn't happened. Is there anything I
missed out to make it happen?
Thanking you in anticipation.
Regards
Niyaz N
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden