1. [Win32] Fullscreen

I'm working on a database driven alternative to MS Powerpoint, and already I 
am stuck:

What code would be needed to make a window the *full* size of the screen, 
and the mouse invisible? No doubt I will have more questions as time goes by 
but for now that will do.

(and sorry if this gets posted twice, I've had problems with my mail 
account)
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » topic index » view message » categorize

2. Re: [Win32] Fullscreen

--0-16438846-1032926759=:48080


I dont know the full story on how this is done as I have never had to do this
before.  However, after about 20 minutes of looking into some different places, I
found some tidbits.
Looks like the main call revolves around the API function SetWindowPlacement
from User32.dll with some auxillary calls to GetSystemMetrics.  At least this
will get you started.  Looks a bit involved though.  If your interested in a full
source example (MFC), take a peek at
[http://www.nwlink.com/~mikeblas/samples/index.htm] under the download
[Fully.zip].  The main beef of the code falls under the file [mainfrm.cpp]
function [CMainFrame::OnViewFullScreen].
As for the disappearing mouse trick, have you tried creating a new mouse pointer
with no bits turned on?  Seems to me that would be the same as invisible. 
Win32Lib has routines and examples of custom cursors last I checked in the docs.
Good luck =)
Don Phillips

I'm working on a database driven alternative to MS Powerpoint, and already I 
am stuck:

What code would be needed to make a window the *full* size of the screen, 
and the mouse invisible? No doubt I will have more questions as time goes by 
but for now that will do.

(and sorry if this gets posted twice, I've had problems with my mail 
account)
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_ <-------------------/
\__| Mr Trick






<P>I dont know the full story on how this is done as I have never had to do this
before.&nbsp; However, after about 20 minutes of looking into some different
places, I found some tidbits.
<P>Looks like the main call revolves around the API function SetWindowPlacement
from User32.dll with some auxillary calls to GetSystemMetrics.&nbsp; At least
this will get you started.&nbsp; Looks a bit involved though.&nbsp; If your
interested in a full source example (MFC), take a peek at
[http://www.nwlink.com/~mikeblas/samples/index.htm] under the download
[Fully.zip].&nbsp; The main beef of the code falls under the file [mainfrm.cpp]
function [CMainFrame::OnViewFullScreen].
<P>As for the disappearing mouse trick, have you tried creating a new mouse
pointer with no bits turned on?&nbsp; Seems to me that would be the same as
invisible.&nbsp; Win32Lib has routines and examples of custom cursors last I
checked in the docs.
<P>Good luck =)
<P>Don Phillips
<P>&nbsp;<B><I>mistertrik at hotmail.com</I></B> wrote:
New <a href="http://rd.yahoo.com/evt=1207/*http://sbc.yahoo.com/">DSL Internet
Access</a> from SBC & Yahoo!</a>
--0-16438846-1032926759=:48080--

new topic     » goto parent     » topic index » view message » categorize

3. Re: [Win32] Fullscreen

> I'm working on a database driven alternative to MS Powerpoint, and already I
> am stuck:

> What code would be needed to make a window the *full* size of the screen, 
> and the mouse invisible? No doubt I will have more questions as time goes by 
> but for now that will do.

> (and sorry if this gets posted twice, I've had problems with my mail 
> account)

Hi,

If you create a window with the WS_POPUP flag like this:

winFullscreen = create( Window, "", 0, 0, 0, 1, 1, {WS_POPUP})

Then open it maximized like this:

openWindow(winFullscreen,Maximize)

Then it will fill the entire screen (including the taskbar of course)
and will have no caption bar or borders.

As for hiding the mouse I'm not entirely sure, maybe just set the
cursor of the window to a fully transparent cursor (must be a more
elegant way, but that would work).

Thomas Parslow (PatRat)
E-Mail/Jabber: tom at almostobsolete.net
ICQ: 26359483

new topic     » goto parent     » topic index » view message » categorize

4. Re: [Win32] Fullscreen

do you want to hide the taskbar also?

----- Original Message -----
From: Thomas Parslow (PatRat) <tom at almostobsolete.net>
Subject: Re: [Win32] Fullscreen


>
> > I'm working on a database driven alternative to MS Powerpoint, and
already I
> > am stuck:
>
> > What code would be needed to make a window the *full* size of the
screen,
> > and the mouse invisible? No doubt I will have more questions as time
goes by
> > but for now that will do.
>
> > (and sorry if this gets posted twice, I've had problems with my mail
> > account)
>
> Hi,
>
> If you create a window with the WS_POPUP flag like this:
>
> winFullscreen = create( Window, "", 0, 0, 0, 1, 1, {WS_POPUP})
>
> Then open it maximized like this:
>
> openWindow(winFullscreen,Maximize)
>
> Then it will fill the entire screen (including the taskbar of course)
> and will have no caption bar or borders.
>
> As for hiding the mouse I'm not entirely sure, maybe just set the
> cursor of the window to a fully transparent cursor (must be a more
> elegant way, but that would work).
>
> Thomas Parslow (PatRat)
> E-Mail/Jabber: tom at almostobsolete.net
> ICQ: 26359483
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: [Win32] Fullscreen

Yes, just like powerpoint does in full screen mode.
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick


>From: g.haberek at comcast.net
>Subject: Re: [Win32] Fullscreen
>
>
>do you want to hide the taskbar also?
>
>----- Original Message -----
>From: Thomas Parslow (PatRat) <tom at almostobsolete.net>
>To: EUforum <EUforum at topica.com>
>Sent: Thursday, September 26, 2002 4:53 AM
>Subject: Re: [Win32] Fullscreen
>
>
> > > I'm working on a database driven alternative to MS Powerpoint, and
>already I
> > > am stuck:
> >
> > > What code would be needed to make a window the *full* size of the
>screen,
> > > and the mouse invisible? No doubt I will have more questions as time
>goes by
> > > but for now that will do.
> >
> > > (and sorry if this gets posted twice, I've had problems with my mail
> > > account)
> >
> > Hi,
> >
> > If you create a window with the WS_POPUP flag like this:
> >
> > winFullscreen = create( Window, "", 0, 0, 0, 1, 1, {WS_POPUP})
> >
> > Then open it maximized like this:
> >
> > openWindow(winFullscreen,Maximize)
> >
> > Then it will fill the entire screen (including the taskbar of course)
> > and will have no caption bar or borders.
> >
> > As for hiding the mouse I'm not entirely sure, maybe just set the
> > cursor of the window to a fully transparent cursor (must be a more
> > elegant way, but that would work).
> >
> > Thomas Parslow (PatRat)
> > E-Mail/Jabber: tom at almostobsolete.net
> > ICQ: 26359483
> >
> >
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu