设置分辨率
-
C/C++ code
-
DEVMODE dm; EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, & dm); dm.dmPelsWidth = 800 ; dm.dmPelsHeight = 600 ; ChangeDisplaySettings( & dm, CDS_FULLSCREEN | CDS_SET_PRIMARY);
设置分辨率
DEVMODE dm; EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, & dm); dm.dmPelsWidth = 800 ; dm.dmPelsHeight = 600 ; ChangeDisplaySettings( & dm, CDS_FULLSCREEN | CDS_SET_PRIMARY);