Can you create a window (not guiwindow) without a border?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Brainstorm
Posts: 5
Joined: Wed May 23, 2007 1:30 pm

Can you create a window (not guiwindow) without a border?

Post by Brainstorm »

Is it posible to create a window (not guiwindow) without a windowborder?

I have searched the documentation and I found nothing. I have also tried to search windows.h to find a function that hides the border (to which you can pass the HWND of the window (driver->GetExposedVideoData().HWnd)). But I didn't find anything. Do you know how this can be done? (at least working on windows)
Robert Y.
Posts: 212
Joined: Sun Jan 28, 2007 11:23 pm

Post by Robert Y. »

Have a look at the SetWindowLong function of the Win32 SDK.
vi-wer
Posts: 93
Joined: Sun May 20, 2007 7:15 pm
Location: Germany
Contact:

Post by vi-wer »

SetWindowLong( hWnd, GWL_STYLE, WS_VISIBLE|WS_POPUP) should remove the border ( an additional style flag and/or UpdateWindow(hWnd) could be necessary to show the window).
Brainstorm
Posts: 5
Joined: Wed May 23, 2007 1:30 pm

Post by Brainstorm »

:) Thanks!
testing now...

Edit: it works!
Edit2: But the window is always as big as I want it to be + the size of the border which is painted over with beginScene(). I can't paint on the area that was supposed to be border with any drawing function except the beginScene() function. And it responds to click events in the whole window. I'll upload a screenshot on request.
Edit3: Fixed it... I resized the window with SetWindowPos function.
Post Reply