VB.Net 2005 ÅÜ´«¿Ã¹õ¸ÑªR«×»yªk½d¨Ò
- ©«¤l
- 20
- ¥DÃD
- 18
- ºëµØ
- 0
- ¿n¤À
- 43
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-9-5
- ³Ì«áµn¿ý
- 2011-9-6
|
VB.Net 2005 ÅÜ´«¿Ã¹õ¸ÑªR«×»yªk½d¨Ò
¤U±ªº Form ¸Ì±¡A¥u¦³¤@Ó Label ¤Î¨âÓ Button ¤¸¥ó¦Ó¤w¡G
Public Class Form1
Private Const CCDEVICENAME As Short = 32
Private Const CCFORMNAME As Short = 32
Private Const DM_PELSWIDTH As Integer = &H80000
Private Const DM_PELSHEIGHT As Integer = &H100000
'§ó·s¿Ã¹õ±½ºËÀW²v±`¼Æ
Private Const DM_DISPLAYFREQUENCY As Integer = &H400000
'«Å§in¨Ï¥Îªº API ¨ç¦¡
Private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Integer, ByVal iModeNum As Integer, ByRef lpDevMode As DEVMODE) As Boolean
'«Å§in¨Ï¥Îªº API ¨ç¦¡
Private Declare Function ChangeDisplaySettings Lib "user32" Alias "ChangeDisplaySettingsA" (ByRef lpDevMode As DEVMODE, ByVal dwflags As Integer) As Integer
'©w¸qn¨Ï¥ÎªºÅܼƵ²ºc
Private Structure DEVMODE
<VBFixedString(CCDEVICENAME), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=CCDEV .. |
|
Ó¤Hñ¦W@
|
|
|
|
|