hello , i am wanting to make one of my programs full screen and i have read that i would need to use CDS_FULLSCREEN....thing is how do you use it?
hello , i am wanting to make one of my programs full screen and i have read that i would need to use CDS_FULLSCREEN....thing is how do you use it?
do you mean full screen console?
well i found CDS_FULLSCREEN in <winuser.h>
but im not sure how to use it
Code:/* Flags for ChangeDisplaySettings */ #define CDS_UPDATEREGISTRY 0x00000001 #define CDS_TEST 0x00000002 #define CDS_FULLSCREEN 0x00000004 #define CDS_GLOBAL 0x00000008 #define CDS_SET_PRIMARY 0x00000010 #define CDS_VIDEOPARAMETERS 0x00000020 #define CDS_RESET 0x40000000 #define CDS_NORESET 0x10000000
Last edited by sand_man; 05-24-2004 at 02:02 AM.
sorry i forgot to post...this is for a C,win32 api program
also i think its something like
ChangeDisplaySettings(not sure wat goes here , setting here);
Never used it but:
http://msdn.microsoft.com/library/de...vcons_7gz7.asp
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
The information you need is in this thread.
gg
Have you tried
?Code:LPDEVMODE lpDevMode; ZeroMemory(lpDevMode, sizeof(DEVMODE)); lpDevMode->dmSize = sizeof(DEVMODE); ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN);
Sorry...you'll probably want
And, yes, I haven't tested this so go test it yourself then if you care.:PCode:LPDEVMODE lpDevMode; lpDevMode = (LPDEVMODE) LocalAlloc(LPTR, sizeof(DEVMODE)); ZeroMemory(lpDevMode, sizeof(DEVMODE)); lpDevMode->dmSize = sizeof(DEVMODE); ChangeDisplaySettings(lpDevMode, CDS_FULLSCREEN); /* rest of your code */ LocalFree(lpDevMode);