fullscreen and window

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

fullscreen and window

Post by iona »

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
iona
Posts: 19
Joined: Mon May 29, 2006 6:29 pm

Post by iona »

Stupid me.

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
Post Reply