Game Development Community

Removing Window Frame

by Stefan Lundmark · in Torque Game Engine · 08/15/2004 (8:53 am) · 4 replies

I'm looking for a way to remove the Window Frame that is visible if you run Torque in Windowed Mode. In Windows XP these fill up a pretty big amount of space and they don't look very well when you don't want em. ;)

I've looked a bit at Windows API programming but didn't find much there.

Anyone have a clue? Or pointers?

#1
08/15/2004 (11:45 am)
Wouldn't you want to keep the frame if you're running in a window? Otherwise the user can't really move the window...
#2
08/15/2004 (1:12 pm)
Yeah, that's not really an issue.

No one knows? I thought it would be an easy modification.. like three lines or something.
#3
08/15/2004 (1:21 pm)
...
#4
08/15/2004 (4:56 pm)
With the help of WN_NCPAINT I got to a website that explained it. But searching TGE and it's source doesn't reveal a single instance of this command (only in the compiled ones).

I found where the window border and caption was set though.

@ line 769 in winwindow.cc
if ( fullScreen )
      windowStyle |= ( WS_POPUP | WS_MAXIMIZE );
   else
      windowStyle |= ( WS_OVERLAPPED | WS_CAPTION );

change windowStyle |= ( WS_OVERLAPPED | WS_CAPTION );
to
windowStyle |= ( WS_POPUP );

Thanks for the help.