Ok I'm using MFC so most of this is precreated!
I'm trying to get the 3D area where you see white. I tryed going into the App's class and using GetMainWnd (); but it created an entire other window for Irrlicht. I was wondering if anyone knows which function in which MFC class allows me to get the handle to the white area so I can pass it to Irrlicht. The editor is a single document BTW.
Irrlicht in a Windows Window! Cant find the HWND!
GetClientRect will get you the client area. Make a borderless irrlicht window and use the client area as its position and size. You can update in OnPaint.
You can also look at http://irrlicht.sourceforge.net/tut014.html
You can also look at http://irrlicht.sourceforge.net/tut014.html
easiest way is use a dialog then and a control ( I used a button ).. make it invisible. use class wizard to make a control variable ( say CButton m_Screen for example ) then call m_Screen.GetSafeHwnd() and pass it to irrlicht irr::createDeviceEx in irr::SIrrlichtCreationParameters. As was said in previous post you can call m_Screen.GetClientRect or after irrlicht is created you can call driver->getScreenSize()