Is there a way to make my Irrlicht application always on top

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
das heck
Posts: 6
Joined: Thu Feb 11, 2010 12:14 pm

Is there a way to make my Irrlicht application always on top

Post by das heck »

Hi there,

the question is already in the title. So is there a way? I don't wanna create a Win32 Window like in Tutorial 14.

best regards heck
Image

RPGBomber - A bomberman like game
  • System: 80%
  • Game: 20%
  • Map editor: 90%
Check this website for current release: http://www.rpdev.net
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

I think there's a flag you can set for that during the window creating process, but that'd require you to edit the engine

I don't know if there's a way to achieve this externally
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

That's a style you set during the creation of the window. Irrlicht's default window can't be set to it at the time being, but you can create a custom window and then insert Irrlicht (see example 14).
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe post a link to the flag description, then we could arrange for a startup parameter.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

hybrid wrote:Maybe post a link to the flag description, then we could arrange for a startup parameter.
yay... :D
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

WS_EX_TOPMOST http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Iirc Irrlicht uses CreateWindow to create the render window. This would have to be changed to CreateWindowEx
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
das heck
Posts: 6
Joined: Thu Feb 11, 2010 12:14 pm

Post by das heck »

In other words: Without changes in the irrlicht sources there is no possibility? yuck :/
Image

RPGBomber - A bomberman like game
  • System: 80%
  • Game: 20%
  • Map editor: 90%
Check this website for current release: http://www.rpdev.net
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You might be able to use the ExposedVideodata and call some windows method on it.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

hybrid wrote:You might be able to use the ExposedVideodata and call some windows method on it.
Yes, this works:

Code: Select all

SExposedVideoData evd = m_videoDriver->getExposedVideoData();
HWND hwnd = (HWND) evd.OpenGLWin32.HWnd;
SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
Post Reply