Borderless window

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
User avatar
Ruud v A
Gremlin
Posts: 150
Joined: Mon Jan 28, 2008 6:44 pm
Location: The Netherlands
Contact:

Borderless window

Post by Ruud v A » Tue Feb 03, 2009 5:59 pm

How do I create a borderless window via the Win32 API? I searched Google quite thoroughly, but no results. If I specify no window styles and no extended window styles (just 0) the window still has a border (and caption bar, I also like to know how to get rid of that. Not specifying WS_CAPTION and no buttons just WM_THICKFRAME doesn't work.)

Thanks in advance,

~Ruud.
0 x

User avatar
lonewolff
Ogre Magi
Posts: 1191
Joined: Wed Dec 28, 2005 12:58 am
x 1

Re: Borderless window

Post by lonewolff » Wed Feb 04, 2009 12:41 am

WS_POPUP in your window style will do the job.

For example;

HWND hWnd=CreateWindowEx(NULL,L"Window Class",
L"Windows application",
WS_EX_TOPMOST | WS_POPUP,
200,
200,
640,
480,
NULL,
NULL,
hInst,
NULL);

Hope this helps :wink:
0 x

User avatar
Ruud v A
Gremlin
Posts: 150
Joined: Mon Jan 28, 2008 6:44 pm
Location: The Netherlands
Contact:

Re: Borderless window

Post by Ruud v A » Wed Feb 04, 2009 9:25 pm

Yes it does! Thank you very much. :D
0 x

User avatar
lonewolff
Ogre Magi
Posts: 1191
Joined: Wed Dec 28, 2005 12:58 am
x 1

Re: Borderless window

Post by lonewolff » Wed Feb 04, 2009 10:23 pm

Glad to be of assistance :D
0 x

Zebriah
Gnoblar
Posts: 1
Joined: Wed Jun 04, 2014 5:04 am

Re: Borderless window

Post by Zebriah » Tue Jun 10, 2014 7:15 am

This is a kicker for this thread as it's been inactive since '09. Using Python-Ogre (ogre 1.7.1) how would I create a borderless window?
0 x

Post Reply