Page 1 of 1

Borderless window

Posted: Tue Feb 03, 2009 5:59 pm
by Ruud v A
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.

Re: Borderless window

Posted: Wed Feb 04, 2009 12:41 am
by lonewolff
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:

Re: Borderless window

Posted: Wed Feb 04, 2009 9:25 pm
by Ruud v A
Yes it does! Thank you very much. :D

Re: Borderless window

Posted: Wed Feb 04, 2009 10:23 pm
by lonewolff
Glad to be of assistance :D

Re: Borderless window

Posted: Tue Jun 10, 2014 7:15 am
by Zebriah
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?