Page 1 of 1

HWND GetAncestor

Posted: Sun Apr 02, 2017 7:42 pm
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?

Re: HWND GetAncestor

Posted: Sun Apr 02, 2017 8:27 pm
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.