004
29.10.2003, 10:04 Uhr
FloSoft
Medialer Over-Flow (Administrator)
|
Um in Vollbildmodus zu gehen:
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; }
|
-- class God : public ChuckNorris { }; |