2007. 12. 10. 14:20

Windows CE Screen Rotation



Windows CE에서 화면을 회전(Screen Rotation)하는 방법에 대한 문서이다.

갑자기 해야할 일이 생겨서 여기 저기 문서를 뒤지다가.. MSDN에 있는 문서를 참고해서 대충 돌아가는 것만 확인했다.

하나의 응용프로그램을 만들어 실행(더블클릭) 시 90도씩 시계 반대방향으로 화면이 회전하는 것이다. 일반적으로 PDA같은 곳에 있는 기능이라고 하여 시도를 해본 것이다.
참고로 현재는 멀티 스크린은 적용되지 않고, 또 screen rotation 프로그램을 실행시키게 되면 커서나 마우스의 동작이 자동으로 바뀐 스크린에 맞게 동작을 하게 된다.
그리고, screen rotation은 display driver가 screen rotation을 지원할 경우에만 가능하다. 더 자세한 사항은 'Screen Rotation'를 참조하면 될 듯 하다.

참고한 'MSDN( How to Implement Screen Rotation)' 링크이다.

다음은 Screen Rotation APP를 만드는 절차이다.
Step Topic

1. Create an OS design. Make the following choices in the Windows Embedded CE 6.0 OS Design Wizard:

  • Name the OS design ScreenRotation.
  • From the Available BSPs list, choose CEPC: x86.
  • From the Available design templates list in the New Platform Wizard, choose the PDA Device design template. In the Variants step, choose Mobile Handheld.

Creating an OS Design

2. Make the registry changes.

Screen Rotation Registry Settings

3. Create a project for the screen rotation application.

Creating a Project for the Screen Rotation Application

4. Specify whether you are building a release or debug configuration of the OS design.

Choose the release build.

Levels of Debugging Support

5. Build the run-time image. The following list shows the choices to make:

  1. From the Build menu, select Global Build Settings. Ensure that the following are selected:
    Copy Files to Release Directory After Build
    Make Run-Time Image After Build
  2. From the Build menu, choose Build Solution.

Building a Run-Time Image

6. Download the run-time image.

Downloading a Run-Time Image to a CEPC

7. Run the application and verify the screen rotation.

To execute the sample application on the CEPC, right-click the Start button and choose Run. Type ScreenRotationProj and choose OK. Verify that the screen has rotated by 90 degrees.

Each time you run the ScreenRotationProj program, the screen will rotate by 90 degrees.

Not applicable.