buddyapi功能太强大了,只用来修改分辨率只须从它的家里www.mods.com.ca下载
URL
www.mods.com.au/budapi/download/beta/baSetDisplayEx.zipbaSetDisplayEx.zip就足够了,而它比dm等控制能力更强。
用法:
Description: baSetDisplay sets the screen size and depth.
Usage: Result = baSetDisplay( Width , Height , Depth , Mode , Force )
Arguments: Integer, integer, integer, string, integer.
Width is the new width of the screen in pixels.
Height is the new height of the screen in pixels.
Depth is the new depth of the screen in bits.
Mode is the way in which the new display is set. Can be:
"temp" temporarily change the display settings.
"perm" permanently change the display settings.
"test" tests whether the display can be set without restarting.
If Force is true, forces the display to change.
Returns: Integer.
Returns 0 if the display was changed or can be changed without restarting.
Returns 1 if Windows will need to be restarted for the change to take effect.
Returns less than 0 if another error occurred, eg invalid screen size.
Examples: Director:
set OK = baSetDisplay( 640 , 480 , 8 , "temp" , false )
Authorware:
OK := baSetDisplay( 640 , 480 , 8 , "temp" , false )
Notes: This function will not work under Windows 3.1 - it will always return 0.
Not all display cards and drivers support screen changing without restarting.
The force option is not officially supported by Microsoft. It forces the display to change without restarting. This may work correctly with some video cards and drivers, but can cause palette problems on others, and crash the system on some. You are advised to only use this option on known hardware and after extensive testing.
If you use the "temp" mode, then the user's preferred screen display will be returned when the system is restarted. You can not set a "temp" mode unless it can be changed without restarting Windows.