Hello~~
I wrote a camera application. I need to change the orientation to
Landscape when the application is active. I change the orientation to
portrait mode when receive WM_ACTIVATE with state WA_ACTIVE and change
to Landscape mode when receive WM_ACTIVATE with state WA_INACTIVE. But
there is a problem.
The problem is:
I launch pimg.exe when press button in my window. But the list view
in pimg becomes strange, it seems that the list view think it still in
ladnscape mode. I try to sleep 300 mili seconds to delay the change of
orientation when inactivate. In this case the list view works well.
Is it not appropriate to change orientation in WM_ACTIVATE? Anybody
has ideas?