March 9th, 2009, 11:38 PM
new to graphics
I've done some C++ console, and some JAVA and of course VB.
now I want to get started with some simple apps with graphics, I want to be able to able to create apps that don't have the default window with minimize, maximize, ect. I want to be able to define everything myself.
could anyone recommend some info, thanx
also, any recommendations for free compliers? I have been using Codeblocks and MS visual C++ express
Last edited by action_owl; March 9th, 2009 at 11:41 PM.
March 18th, 2009, 02:25 AM
Re: new to graphics
To go full screen on Win32 project, do this:
Originally Posted by action_owl
Hope this helps.
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 = 60; // Selected Screen Height
dmScreenSettings.dmBitsPerPel = 16; // Selected Bits Per Pixel
// Try To Set Selected Mode And Get Results. NOTE: CDS_FULLSCREEN Gets Rid Of Start Bar.
// If The Mode Fails, Offer Two Options. Quit Or Use Windowed Mode.
if (MessageBox(NULL,"The Requested Fullscreen Mode Is Not Supported By\nYour Video Card. Use Windowed Mode Instead?","GL",MB_YESNO|MB_ICONEXCLAMATION)==IDYES)
MessageBox(NULL,"Program Will Run in Windows Mode.","ERROR",MB_OK|MB_ICONSTOP);
MessageBox(NULL,"Program Will Now Close.","ERROR",MB_OK|MB_ICONSTOP);
Last edited by ckweius; March 18th, 2009 at 10:22 PM.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.