002
09.09.2004, 19:53 Uhr
mike
Pinguinhüpfer (Operator)
|
Hi! Suche benutzen - dann findet man auch ein fertiges Sample von Flo
C++: |
DEVMODE dmScreenSettings; memset(&dmScreenSettings,0,sizeof(dmScreenSettings)); dmScreenSettings.dmSize = sizeof(dmScreenSettings); dmScreenSettings.dmPelsWidth= 1024; dmScreenSettings.dmPelsHeight = 768; dmScreenSettings.dmBitsPerPel = 32; dmScreenSettings.dmFields = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT|DM_DISPLAYFLAGS; dmScreenSettings.dmDisplayFrequency=85;
if (ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL) { MessageBox(NULL,"The Requested Fullscreen Mode Is Not Supported by Your Videocard", "ERROR", MB_OK|MB_ICONSTOP); MessageBox(NULL,"Program Will Now Close.", "ERROR", MB_OK|MB_ICONSTOP); return 0; }
|
mfg --
|