HWND GetAncestor

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

HWND GetAncestor

Post by REDDemon »

My friend using irrlicht mentioned he had to replace in CIrrDevieWin32

and replace all instances of HWND with GetAncestor(HWnd, GA_ROOT)

this was needed to get events working when using irrlicht inside a foreign window (in this case it was a SFML window, but the procedure is the same of the irrlicht tutorials).

Anyone that known deeply winApi could check this change so we can add it to trunk?
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: HWND GetAncestor

Post by CuteAlien »

That doesn't sound correct. We got an example (no. 14) of Irrlicht running inside another Window and that works with the current solution (and this sounds like it would break it). I also got a project using it inside WTL which also works already.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply