changing position of the window

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
Heizi
Posts: 30
Joined: Mon Oct 10, 2005 11:23 am
Location: Steinach/Baden

changing position of the window

Post by Heizi »

For my next project (an RPG) I plan to
integrate text and questions etc., so
I thought it would be easiest to start
the program in windowed mode
and use printf, but sometimes the
console is covered by
the Irrlicht window, so I was asking myself
whethter it is possible to set the position of
the window at the upper left corner and make
the console use the rest of the screen.
I also have to use alt+tab to change from to the
console to the Irrlicht window and vice versa. Maybe somehow
this works automatically, but I dont know how.
Has anyone got a solution???
xterminhate
Posts: 206
Joined: Thu Sep 01, 2005 9:26 pm
Location: France

Post by xterminhate »

You can easly retreive the handler of the Irrlicht render window.

Code: Select all

irr::video::SExposedVideoData exposedData = driver->getExposedVideoData(); 
HWND hWnd = reinterpret_cast<HWND>(exposedData.D3D9.HWnd); 
Then, you can call win32 API methods to alter windows properties, in game.

Xterm-In'Hate.
Return to Irrlicht after years... I'm lovin it.
It's hard to be a Man !
Si vis pacem para belum
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Seems like you could do the same thing pretty easily with the standard GUI controls provided. There is also the chat window that someone wrote. You could just modify that for your needs. Then the game could run full screen and you could still get your input.

Travis
Post Reply