vb½çÃæ×ÔÊÊÓ¦²»Í¬·Ö±æÂÊÖÕ¼«½â¾ö·½°¸
ÏÖÔÚ¿íÆÁ£¬´óÆÁÄ»ÏÔʾÆ÷Ô½À´Ô½Æձ飬ÔÀ´ÔÚ800*600ÏÂÉè¼ÆµÄÈí¼þ½çÃ棬ÔÚ´óÆÁÄ»ÏÔʾÆ÷£¨1680*1050£©ÉϽçÃæ×ÜÊÇËõµ½Ò»½Ç£¬·Ç³£ÄÑ¿´£¬Òª½«ÀϳÌÐòµÄ½çÃæ°´ÕÕ²»Í¬µÄ·Ö±æÂÊÔÚÖØнøÐÐÉè¼Æ±à³Ì£¬Õû¸ö¹ý³Ì±È½Ï¸´ÔÓ¶øÇÒʵÓÃÐÔ²»´ó£¬Èç¹ûÔÀ´³ÌÐò±È½Ï´óÇÒ½çÃæ±È½Ï¶àµÄ»°ÄÇô¹¤×÷Á¿Ò²½«ÊǾ޴óµÄ£¬¶øÇÒ»¹¿ÉÄܳöÏÖÆäËû´íÎó£¬ÓÐûÓÐÒ»ÖÖÖØÒªÔö¼ÓÉÙÐí´úÂë¾ÍÄܽ«ËùÓеĽçÃæ×Ô¶¯ÊÊÓ¦²»Í¬µÄ·Ö±æÂÊÄØ£¬ÔÚÍøÉÏËÑË÷ÁËÒ»ÏÂÓкܶàÏֳɵķ½·¨£¬µ«»ò¶à»òÉÙ¶¼ÓÐЩÎÊÌ⣬×Ü֮ûÓÐÍêÃÀµÄ½â¾ö·½°¸£¬ÎÒ¾¹ýÑо¿ÕÒµ½ÁËÒ»ÖÖ·½·¨»ù±¾¿ÉÒÔ½â¾öËùÓÐÎÊÌ⣬Óë´ó¼Ò¹²Ïí£¬µ±È»¸Ã´úÂëÖÐËù¿¼ÂǵĿؼþ²»ÍêÈ«£¬ÓÐЩ¿Ø¼þ»¹ÐèÒªÌرð´¦Àí£¬Õâ¸öÎÒÔÚºóÃæµÄ³£¼ûÎÊÌâ˵Ã÷Àï»áÌáµ½£¬¾ßÌåµÄ´úÂëÐèÒªÄã×Ô¼ºÈ¥Ìí¼Ó¡£
´úÂëÈçÏ£º
1¡¢Ð½¨Ò»¸öÄ£¿é£¨general.bas£©£¬ÔÚÉÏÃæÌí¼ÓÁ½¸öº¯Êý£»
Public Type CONTROLRECT
Left As Single
Top As Single
Width As Single
Height As Single
End Type
Public Const HORZRES = 8
Public Const VERTRES = 10
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Public Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
'È¡µÃ½çÃæÔʼ¿Ø¼þµÄλÖü°´óС£¬²¢±£´æµ½Êý×éÀï
Public Sub GetSourcePos(this As Object, rc() As CONTROLRECT, Optional bigFont As Boolean = True)
Dim tempX As Integer, tempY As Integer
tempX = this.ScaleWidth '1024
tempY = this.ScaleHeight '768
'´Ë´¦ÔÀ´Èç¹ûÔÚ1024*768·Ö±æÂÊÏÂÏÔʾÕý³£µÄ»°£¬¾Í¿ÉÒÔÖ±½Ó¸³Öµ1024ºÍ768
Dim temp As Control
Dim nSum As Integer
nSum = 0
For Each temp In this
'´Ë´¦Òª×¢Ò⣬ÓÐЩ¿Ø¼þûÓÐwidth£¬heightµÈÊôÐÔ£¬ÔÚ´ËÒª×ö³öÅжÏ
If TypeOf temp Is ComboBox Then
With rc(nSum)
.Left = temp.Left / tempX
.Width = temp.Width / tempX
.Top = temp.Top / tempY
End With
'
Ïà¹ØÎĵµ£º
VBÒþ²Ø½ø³ÌÎÊÌâµÄÌÖÂÛÓÉÀ´ÒѾÃ,Ч¹ûÓкÃÓлµ,·´ÕýÊǸ÷Óи÷µÄÕÐ,żȻ»ú»á¿´µ½planet-sourceÒ»¶ÎÒþ²Ø½ø³ÌµÄÎÄÕÂ,×÷Õß˵²ÉÓÃÁËkernel mode driver!·½·¨,
µ¥´Ó¼¼Êõ·½·¨¶øÑÔ,ÕâÊÇÄ¿Ç°¼ûµ½Òþ²Ø½ø³ÌÖÐ×îÇ¿º·µÄÁË(¸öÈ˼û½â,¾®µ×Ö®ÍÜÁË),²»¹ýÕâÖÖ¶«Î÷ÓÃÔÚÕýÒåµÄÈËÊÖÉÏÊÇÒ»¸ö³ý±©°²Á¼µÄÀûÆ÷,ÓÃÐÄØϲâÕ߾Ͳ»ºÃ˵ÁË,µ«ÊǼ¼ÊõÖÕ¹éÊǼ¼Êõ ......
VERSION 5.00
Begin VB.Form Form2
AutoRedraw = -1 'True
Caption = "¼ÆËã½çÃæ"
ClientHeight = 4905
ClientLe ......
MYSQL Ó¦ÓÃÊ®·Ö¹ã·¶£¬ºÜ¶àÍøÕ¾¼¸ºõ¶¼ÔÚÓÃËû£¬ÒòΪËûµÄСÇɺÍÁé»îÐԵȷ½ÃæÈÃÎÒ¾ö¶¨Òª¶ÔËû½øÐÐÑо¿£¬µ½ÏÖÔÚÒѾ³É¹¦µÄ²»Óþ¹ýODBC£¬ADOµÈ·½Ê½¾Í¿ÉÒÔ¶ÁÈ¡ºÍ¸üÐÂÊý¾Ý¡£
ºÃÁ˲»¶àÂÞ࣬ÒÔÏÂÎÒÀ´½éÉÜ×ܸö³ÌÐòµÄϸ½Ú:
£¨Ò»£©APIÉùÃ÷
1. '·ÖÅä»ò³õʼ»¯ÊʺÏmysql_real_connect()µÄÒ»¸öMYSQL¶ÔÏñ¡ ......
½¨Ò»¸öÄ£¿é
Public Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Public Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilt ......