Re: Fullscreen and screen saver
r_z_aret_at_pen_fact.com
Date: 02/23/05
- Next message: S Shulman: "IPAQ RX3715"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Windows CE.Net and evc++ 3.0"
- In reply to: Karsten Patzwaldt: "Fullscreen and screen saver"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 15:53:39 -0500
On Wed, 23 Feb 2005 16:05:48 +0100, Karsten Patzwaldt
<karsten@gate5.de> wrote:
>I'm working on a program that runs in fullscreen most of the time. The
>code for entering fullscreen mode looks like this:
>
> RECT rc;
> GetWindowRect(m_hwnd, &rc);
> rc.top = 0;
>
> SetForegroundWindow(m_hwnd);
> SHFullScreen(m_hwnd, SHFS_HIDETASKBAR);
> SHFullScreen(m_hwnd, SHFS_HIDESIPBUTTON);
> SHFullScreen(m_hwnd, SHFS_HIDESTARTICON);
For this piece, I use one call:
SHFullScreen( m_hwn, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON |
SHFS_HIDESTARTICON )
I'm surprised separate calls (such as your method) work, and hope
someone else will clarify.
>
> MoveWindow(m_hwnd, rc.left, rc.top, rc.right - rc.left,
>rc.bottom - rc.top, TRUE);
>
>That works pretty good, except when other windows pop up. On the iPaq
>hx4700, after the screen saver popped up, the keyboard button and the
>task bar are visible again. Same thing happens when the bluetooth device
>selection dialog pops up (the one that is opened automatically when you
>open the serial port that is connected to the bluetooth manager) and is
>closed again.
>
>I realize that simply calling that code pasted above again hides the
>controls again, but I don't know how to find out when to call them. I
>stepped through all uncatched events when closing the popup windows, but
>I could not find any that uniquely identify that specific event.
>
>Is there a way to find out whether my window was hidden behind a popup
>and became visible again?
I concur with the earlier post that suggests handling WM_ACTIVATE
messages. I certainly seems to work for me, although I haven't done
extensive testing.
>
>Thank you,
>
> Karsten
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- Next message: S Shulman: "IPAQ RX3715"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Windows CE.Net and evc++ 3.0"
- In reply to: Karsten Patzwaldt: "Fullscreen and screen saver"
- Messages sorted by: [ date ] [ thread ]