Switch from fullscreen
Hi all
I'm developing a OpenGL ES application to be deployed on a handheld running the window mobile 5.0 0S.
I'm trying to display in fullscreen using the SHFullScreen, ShowWindow and MoveWindow (as explained in http://support.microsoft.com/default.aspx/kb/266244).
When a floating popup menuitem is clicked I would like to show the menu bar (=command bar) again.
When I try do so, the window get resized and the menubar appears but when the rendering function is invoked the scene is rendered on top of the menubar and the menu bar is still activated.
I would like to add a question: When I use the MoveWindow() function should I create another eglSurface and destroy the old one?
that's all
if anything is not clear please ask
[Edited by - ahmedfouad on June 5, 2008 7:10:57 AM]
You should use GetClientRect instead of GetWindowRect.
When you use GetWindowRect the bounds include the whole window so the rendering will cover all elements inside the window. GetClientRect on the other hand will give you only the screen area without frames, menues on other elements.
When you use GetWindowRect the bounds include the whole window so the rendering will cover all elements inside the window. GetClientRect on the other hand will give you only the screen area without frames, menues on other elements.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement