Screen rotation



Hi,

the handling of screen rotation (portrait/landscape) drives me crazy :-(

In an API dialog based application I found the following weird behaviour, more variations may exist:

1) The screen is rotated while the main dialog is displayed. No problem here, every window gets a WM_SETTINGSCHANGED message, and a WM_SIZE message.

2) Another full screen dialog hides the main dialog. This dialog gets a WM_SIZE message, after the screen was rotated. The application message loop receives none of the beforementioned messages.

3) The menu bar immediately receives the mentioned messages, as soon as the screen is rotated, prior to closing the settings window.

Am I doing something wrong?

How to get a reliable notification of a screen rotation?

DoDi
.


Loading