Hi again,
I'm going to do a presentation in flash and I want to use irrlicht engine for a little 3d part.
That's what i'm gonna do:
1. create mfc window with activex flash control (flash8.ocx)
2. on this an invisible button covering the whole window for irricht engine (just like in tutorial about window)
3. in loop i'm going to check status of flash animation and if it reaches some state (button 'go 3d' pressed) the activex will disappear and the button will become visible (then engine init and so on)
I'm going to use opengl driver.
I think it's the best way to connect irrlicht with flash.
However i'm worried about fullscreen mode. I can't find any information about going to fullscreen with a mfc window and using activeX in it.
Any ideas ? How can i turn on fullscreen width mfc window ?
Thanks !
iona
fullscreen and window
Stupid me.
I solved this problem just after sending this post, maybe it will useful for someone:
iona
I solved this problem just after sending this post, maybe it will useful for someone:
Code: Select all
// this goes before creating the window
DEVMODE dmScreenSettings; // Device Mode
memset(&dmScreenSettings,0,sizeof(dmScreenSettings)); // Makes Sure Memory's Cleared
dmScreenSettings.dmSize=sizeof(dmScreenSettings); // Size Of The Devmode Structure
dmScreenSettings.dmPelsWidth = 800; // Selected Screen Width
dmScreenSettings.dmPelsHeight = 600; // Selected Screen Height
dmScreenSettings.dmBitsPerPel = 32; // Selected Bits Per Pixel
dmScreenSettings.dmFields=DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT;
ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN);
iona