Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Full Screen Window

101 views
Skip to first unread message

T-Man

unread,
Jun 24, 2001, 4:41:58 PM6/24/01
to
Hi,
I am writing a program using the Win32 SDK in C. I would like to make my
main window full screen without a title bar. Similar to the windows used by
many of the different first-person games. I realize this may be a trivial
answer but I cant seem to find it in any programming book. Is there a site
that I can look this information up on or could anyone please tell me what
the style is or the commands are to do this.

Thanks
~Todd


Derick Morrison

unread,
Jun 24, 2001, 8:32:28 PM6/24/01
to
"T-Man" <Marau...@hotmail.com> wrote in message
news:9h5jbo$ho0$1...@slb5.atl.mindspring.net...

You need to use a window style of WS_POPUP instead of
the usual WS_OVERLAPPEDWINDOW style in your
CreateWindow (or CreateWindowEx) call. Note that
with a WS_POPUP style, using CW_USEDEFAULT for
window position and size doesn't fly; you'll need to specify
the size.

Example to create full-screen window borderless window.
Note: the window title doesn't actually show atop
the window, but it'll appear on task bar if the user
toggles away from your app. The window size here
(1,1) doesn't reaally matter since the window is
being maximized. Of course, setup your window
class like usual with choice of background brush,
etc., before calling CreateWindow.

HWND hwnd =
ateWindow(
"your app class",
"your app title",
WS_POPUP,
0, 0, 1, 1,
NULL, NULL, hInstance, NULL);
if (!hwnd)
/* error handler for window create fail */ ;
ShowWindow(hwnd, SW_MAXIMIZE);
UpdateWindow(hwnd);

Derick Morrison

unread,
Jun 24, 2001, 8:36:44 PM6/24/01
to
"Derick Morrison" <derick_...@hotmail.com> wrote in message >

> HWND hwnd =
>
Window(

Don't know what happened to that line, it should have read:

HWND hwnd = CreateWindow(

Sorry 'bout that

T-Man

unread,
Jun 24, 2001, 8:55:41 PM6/24/01
to
Thank you very much.

~Todd

"Derick Morrison" <derick_...@hotmail.com> wrote in message

news:wEvZ6.122621$DG1.20...@news1.rdc1.mi.home.com...

Pierre Roudier

unread,
Jun 25, 2001, 4:20:39 AM6/25/01
to

"T-Man" <Marau...@hotmail.com> a écrit dans le message news:
9h5jbo$ho0$1...@slb5.atl.mindspring.net...

> Hi,
> I am writing a program using the Win32 SDK in C. I would like to make my
> main window full screen without a title bar. Similar to the windows used
by
> many of the different first-person games.

There are two differents full-screen mode..
One is the 'GDI' full screen mode (no window caption, task bar hide) ex:
InstallShield (sometime)
The other on is the 'material' full screen mode (like the 1st person game).
If you are programming games, use this one (the graphic card don't care
about the gdi and the user interface, so all its 'power' is used to calcul
the graphics)... With OpenGL and a Voodoo card, just copy the
Windows\system\3dfxvgl.dll in your app folder and rename it to opengl32.dll
(and create your window as popup, see another post!)

Good Luck!


T-Man

unread,
Jun 25, 2001, 11:06:50 AM6/25/01
to
Are there any special values that I need to set for CreateWindow or the
WNDCLASS to have it use the 'material' full screen mode rather then the
'GDI' full screen mode or will it do that by default because I am using
WS_POPUP?

"Pierre Roudier No!hyr...@club-internet.fr>" <Spam> wrote in message
news:9h73h0$pav$1...@front3m.grolier.fr...

0 new messages