Remove default IRR window style

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.
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Remove default IRR window style

Post by arfgh »

Yes, how can we do that ?
The thing is to get the default window without the borders and the caption, and let just the usefull part of the window only.

I can do that from vb, but the point is make it from the c++ source and not lett the IRR show that styles.

Someone know howto to try that ?
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Make your own window as in the win32 example and set the styles how you want, and place the Irrlicht Device in inside it (if I remember correctly, in that example, the IrrDevice is put into a "BUTTON"
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

WE talk about the deafult window the irrlicht starts.

Nobody knows about ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

luckymutt also meant this window. If you use the external window variable when creating the Irrlicht device nothing is created, Irrlicht just acquires a rectangle area to draw in. So if you know how to get rid of the windows decorations using just win32 calls you can tke that window (created and decorated by you) and let Irrlicht render into it.
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

But the thing hybrind is not remove the caption and the border (style).
Is not allow the creation of it... understand ?

Anyways if you can show me some example about what are you telling...


thx
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, I think I do not understand, sorry.
RhavoX
Posts: 33
Joined: Tue Jul 04, 2006 7:27 pm

Post by RhavoX »

hybrid wrote:No, I think I do not understand, sorry.
Hmm maybe he thinks that the solution you gave him isn't removing the caption an border...
Teh Uber-Pwner xD
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

But it is :)
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

but i not understand that solution.. show us an example of what you tell
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Example 14. Just setup the windows as you want before.
And no, tell us what you want first.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Here:
http://msdn.microsoft.com/library/defau ... window.asp
(check out the dwStlye parameter)

That will tell you all about how to create and customize the window to how you want.
Check out the CreateWindowEX function as well.

To change the default appearance of the window that Irrlicht is in, you need to do one of the following:

1. run it in full screen mode
2. use the above links to see how you can change styles with the Win32Window example
3. use the same links and change Irrlicht's source code to default to whatever style you want and rebuild the engine
or
4. cover the top portion of the window on your monitor with duct tape :D
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

Yes luckymutt, i know that dwStyle values and how to change the window style. But the thing i want to do is...

1 - irrlitch start with a deault window.
2 - not allow to irrlitch the creation of the style he want
3 - change the way the irrlicht make that style

i hope is more clear now ... because i not need to create a new window. The irrlich deault one is wnough for me, but i need to change its style.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can get the HWND from exposed video data structure of the device. Then make your changes to that handle.
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

Hybrid.. in what irrlich library is that procedure. You know ?
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

I mean.. to know the part where the irrlich libraries set for example the classname to "CIrrDeviceWin32"
Post Reply