Re: Fullscreen and screen saver
From: Arvind (r_at_erivasystems.com)
Date: 03/01/05
- Next message: Arvind: "Re: How can I read the Device ID ?"
- Previous message: Arvind: "Re: encryption and decryption techniques"
- Next in thread: Karsten Patzwaldt: "Re: Fullscreen and screen saver"
- Reply: Karsten Patzwaldt: "Re: Fullscreen and screen saver"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 09:59:28 +0530
yeah place the code under the following would work. atleast it did for me.
case WM_ACTIVATE:
//your code here
break;
-- ---------------------------------------------------------------------------- ------------------------------------ "eRiva Systems" - Where Technology Meets Life, Every Minute. e-Mail : arvindr@erivasystems.com Web Site: www.erivasystems.com Yahoo Messenger : arvish27 <r_z_aret@pen_fact.com> wrote in message news:2tnp119r8pp0l8f1q4b5i0afhb5hk09dq4@4ax.com... > 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: Arvind: "Re: How can I read the Device ID ?"
- Previous message: Arvind: "Re: encryption and decryption techniques"
- Next in thread: Karsten Patzwaldt: "Re: Fullscreen and screen saver"
- Reply: Karsten Patzwaldt: "Re: Fullscreen and screen saver"
- Messages sorted by: [ date ] [ thread ]