对不起没有Delphi 不好测试能否在2000下通过。
ChangeDisplaySettings changes the current display settings.
This function can change the current screen resolution and color depth,
among other things. Typically, a call to EnumDisplaySettings should preceed
this function, in order to adjust only the desired settings.
Parameters
lpDevMode
A DEVMODE structure that holds the new display settings.
Only the dmBitsPerPixel, dmPelsWidth, dmPelsHeight, dmDisplayFlags,
and dmDisplayFrequency members are used. (Windows 98, NT/2000:
The dmPosition member can also be used.) To restore the settings saved in
the registry, set this parameter and dwFlags to zero.
dwFlags
A combination of the following flags specifying how to change the display mode.
;If no flags are set (i.e., zero is specified), the graphics mode is changed
dynamically.
CDS_UPDATEREGISTRY
Save the new settings to the registry and also change the settings dynamically.
CDS_TEST
Test to see if the new settings are supported by the hardware, without actually
;changing the settings. The function's return value will indicate any problems
that may have occured.
CDS_FULLSCREEN
Go into full-screen mode. This setting cannot be saved.
CDS_GLOBAL
Save the new settings for all users. The CDS_UPDATEREGISTRY flag must also be specified.
CDS_SET_PRIMARY
Make this device the primary display device.
CDS_RESET
Change the settings even if they are the same as the current settings.
CDS_NORESET
Save the settings to the registry, but do not make them take effect yet.
The CDS_UPDATEREGISTRY flag must also be specified.