Minimizing windows

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
khamill
Posts: 17
Joined: Thu Mar 08, 2007 3:50 pm
Location: Nova Scotia, Canada

Minimizing windows

Post by khamill »

Hi Guys,

I see the engine has a setResizeable method for Irrlicht windows. Is there a similar method for minimizing windows? I've noticed that when I use the setResizeable, the minimize functionality is shown but grayed out.

I want full windows functionality.

thanks

Kevin
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You are probably thinking of the function IrrlichtDevice::setResizeAble(). If you want the app to be minimizable, you would need to change the source code in the Irrlicht device [CIrrlichtDeviceWin32.cpp]. Simply pass a WS_MINIMIZEBOX flag to the CreateWindow() function call and rebuild Irrlicht.

Travis
khamill
Posts: 17
Joined: Thu Mar 08, 2007 3:50 pm
Location: Nova Scotia, Canada

Post by khamill »

This seems like a bit of a stretch for something so basic, but I will give it a try...

Call me crazy, bit I didn't think I was going to have to change the baseline to minimize a window...

thanks

Kevin
khamill
Posts: 17
Joined: Thu Mar 08, 2007 3:50 pm
Location: Nova Scotia, Canada

Post by khamill »

Thanks Travis,

I added a line to the device code as you said and now I have minimizing windows.

thanks

Kevin
Post Reply