I have a Win32 MFC form with a CButton component on it. When I create my Irrlicht device I pass the hwnd of that button to creation parameters:
Code: Select all
irr::SIrrlichtCreationParameters parameters;
parameters.DriverType = irr::video::EDT_DIRECT3D9;
parameters.WindowId = hWnd; // hWnd is specified somewhere else.
irr::createDeviceEx(parameters);
When I disable the redraw of the button, nothing gets rendered. So the redraw/refreshing of the button is necessairy.
Does anyone know how to prevent the button from flickering? Or perhaps I need to create Irrlicht on another MFC component?
I know this problem is more related to Windows programming, but I appreciate any help