Pelles C forum

C language => Windows questions => Topic started by: daniel_bingamon on September 25, 2016, 03:00:12 PM

Title: Rotate the whole screen
Post by: daniel_bingamon on September 25, 2016, 03:00:12 PM
I'd like to rotate the screen under program control.
Similar to the the Windows Control-Alt and Arrow Key.

Is there an API call to do this?

This would be for a program placed in the Startup Folder that rotates the screen and then does other things.   
It is for viewing music wit a monitor mounted sideways to read more like a sheet of paper - portrait orientation.
Title: Re: Rotate the whole screen
Post by: frankie on September 25, 2016, 03:18:23 PM
Yes you can use the functions ChangeDisplaySettings().
Here (https://msdn.microsoft.com/en-us/library/ms812499.aspx) you'll find more info and a sample.
Title: Re: Rotate the whole screen
Post by: daniel_bingamon on September 27, 2016, 12:51:24 PM
Thank you