Need window handle

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
nazgul42
Posts: 1
Joined: Sat Nov 17, 2007 3:04 pm

Need window handle

Post by nazgul42 »

I am using Irrlicht.NET and I need the window handle of the window that Irrlicht uses as an IntPtr, and I don't know how to get it. Thanks in advance for any help, Nazgul42.
L1zb3th
Posts: 15
Joined: Thu Jul 26, 2007 1:27 am

Post by L1zb3th »

this is a snippets from my framework, look at it and see if is usefull ;)

Code: Select all

 MyData->InternalData = Root->Driver->getExposedVideoData(); // colecta de info xP

        switch(Driver){
            case EDT_OPENGL:
               MyData->hwnd  = reinterpret_cast<HWND>(MyData->InternalData.OpenGLWin32.HWnd);
                break;

            case EDT_DIRECT3D8:
                MyData->hwnd  = reinterpret_cast<HWND>(MyData->InternalData.D3D8.HWnd);
                break;

            case EDT_DIRECT3D9:
                MyData->hwnd  = reinterpret_cast<HWND>(MyData->InternalData.D3D9.HWnd);
                break;

         default:   // umhh, algun renderere por software?
                MyData->hwnd  = 0;
                break;
        }
MyData is a type that i defined, the member that you see there is

Code: Select all

SExposedVideoData InternalData;
and the hwnd, is a hwnd xDDD

Au Revoir ^^
My Gramathicalz horrorz are precalkulated, zo Zhut Up !
_______
Bah, actually my english is poor, but...
forget it xDDDD
Locked