How can I know when the screen rotates?
-
Now I need to response to the rotating of my screen. that is , an application made by third-party rotates the screen in a random time, when the screen rotates, I need to do sth.(like pop up a message box). I think I can use a work thread to monitor the changes on screen. but how can I know whether the screen rotated? thanks.
-
Now I need to response to the rotating of my screen. that is , an application made by third-party rotates the screen in a random time, when the screen rotates, I need to do sth.(like pop up a message box). I think I can use a work thread to monitor the changes on screen. but how can I know whether the screen rotated? thanks.
-
Hummm .. a possible way is to check for the screens Dimensions (if that applies) at time x .. 1024 x 768 at time y .. 768 x 1024 think it could apply ?
darkbyte: Thanks for your reply. To check if the dimemsion changes can work when the screen rotates 90 degree or 270 degree(and it's hard to know whether 90 degree or 270 degree).But when I rotates 180 degree, I dont know what to do. like: 1024 x 768 ------ 0 degree or 180 degree 768 x 1024 ------ 90 degree or 270 degree How to deffer them if they are the same dimension?