Access������--
ËùÊô·ÖÀࣺ ʵÓÃAPI ×÷Õߣº ¹²ïí ¸üÐÂÈÕÆÚ£º2003-10-14 8:41:00 ÔĶÁ´ÎÊý£º238

ÈçºÎÈ·¶¨µ±Ç°ÆÁÄ»·Ö±æÂÊ


ÕâƪÎÄÕÂÖеÄÐÅÏ¢ÊÊÓÃÓÚ:
Microsoft Access 2000

±¾Îĵķ¢²¼ºÅÔøΪ CHS210106
¸ß¼¶Óû§£ºÒªÇó¾ßÓи߼¶±à³Ì¡¢»¥²Ù×÷ÐԺͶàÓû§¼¼ÇÉ¡£

±¾ÎÄÊÊÓÃÓÚ Microsoft Access Êý¾Ý¿â (.mdb) ºÍ Microsoft Access ÏîÄ¿ (.adp)¡£


¸ÅÒª
±¾ÎÄ˵Ã÷ÈçºÎ´´½¨Óû§¶¨ÒåµÄÑùÀý Visual Basic for Applications º¯ÊýÒÔÈ·¶¨µ±Ç°ÆÁÄ»·Ö±æÂÊ¡£Äú¿ÉÒÔʹÓñ¾º¯ÊýÈ·¶¨ÊÇÔÚ±ê×¼ VGA ģʽ (640 x 480) »¹ÊÇÔÚ Super VGA ģʽ£¨800 x 600¡¢1024 x 768 »ò 1600 x 1200£©ÏÂÔËÐС£

Microsoft ËùÌṩµÄ±à³ÌʾÀýÖ»ÓÃÓÚ˵Ã÷Ä¿µÄ£¬²»¸½´øÈκÎÃ÷ʾ»òĬʾµÄ±£Ö¤£¬°üÀ¨£¨µ«²»ÏÞÓÚ£©ÓÃÓÚÌض¨Ä¿µÄµÄÊÊÓÃÐÔºÍ/»òÊÊÏúÐԵĸ÷ÏîĬʾ±£Ö¤¡£±¾Îļٶ¨Äú¶ÔÑÝʾËùÓõıà³ÌÓïÑԺʹ´½¨¡¢µ÷ÊÔ³ÌÐòËùÓõŤ¾ßÒѾ­·Ç³£ÊìϤ¡£Microsoft µÄÖ§³ÖÈËÔ±¿ÉÒÔ°ïÖú½âÊÍij¸öÌض¨³ÌÐòµÄ¹¦ÄÜ£¬µ«ËûÃDz»»áÐÞ¸ÄÕâЩʾÀýÀ´Ôö¼Ó¹¦ÄÜ£¬Ò²²»»áÖØй¹Ôì³ÌÐòÀ´Âú×ãÌØÊâµÄÒªÇó¡£Èç¹ûÄúµÄ±à³Ì¾­ÑéÓÐÏÞ£¬ÇëÓë Microsoft ÈÏÖ¤ºÏ×÷»ï°éÁªÏµ£¬»ò²¦´òÃâ·Ñ×Éѯµç»° (800) 936-5200¡£ÓÐ¹Ø Microsoft ÈÏÖ¤ºÏ×÷»ï°éµÄÏêϸÐÅÏ¢£¬Çë²Î¼ûÒÔÏÂÍòάÍøÍøÒ³£º

ÓÐ¹Ø Microsoft ÌṩµÄÖ§³ÖÑ¡ÏîµÄÏêϸÐÅÏ¢£¬Çë²Î¼ûÒÔÏÂÍòάÍøÍøÒ³£º

¸ü¶àÐÅÏ¢
ÏÂÃæµÄʾÀý˵Ã÷ÈçºÎ´´½¨²¢Ê¹ÓÃÑùÀý GetScreenResolution() º¯Êý¡£

±¸×¢£ºÄú¿ÉÄÜÓÐijЩÔÚÏÖÓÐ Microsoft Access ¿âÖж¨ÒåµÄ Microsoft Windows API º¯Êý£»Òò´Ë£¬ÄúµÄÉùÃ÷¿ÉÄܱ»Öظ´¡£Èç¹ûÄúÊÕµ½Öظ´¹ý³ÌÃû³Æ´íÎóÏûÏ¢£¬ÇëÔÚ´úÂëÖÐɾ³ý»ò×¢ÊͳöÉùÃ÷Óï¾ä¡£


1¡¢Ð½¨Ä£¿é£¬È»ºó¼üÈëÏÂÁС°ÉùÃ÷¡±ºÍº¯Êý£º
*****************************************************************
DECLARATIONS SECTION
*****************************************************************

Option Explicit

Type RECT
x1 As Long
y1 As Long
x2 As Long
y2 As Long
End Type

NOTE: The following declare statements are case sensitive.


Declare Function GetDesktopWindow Lib "User32" () As Long
Declare Function GetWindowRect Lib "User32" _
(ByVal hWnd As Long, rectangle As RECT) As Long

*****************************************************************
FUNCTION: GetScreenResolution()

PURPOSE:
To determine the current screen size or resolution.

RETURN:
The current screen resolution. Typically one of the following:
640 x 480
800 x 600
1024 x 768

*****************************************************************
Function GetScreenResolution () as String

Dim R As RECT
Dim hWnd As Long
Dim RetVal As Long

hWnd = GetDesktopWindow()
RetVal = GetWindowRect(hWnd, R)
GetScreenResolution = (R.x2 - R.x1) & "x" & (R.y2 - R.y1)

End Function
2¡¢ÔÚÊÓͼ²Ëµ¥ÉÏ£¬µ¥»÷Á¢¼´´°¿Ú¡£
3¡¢ÔÚ¡°Á¢¼´´°¿Ú¡±ÖмüÈëÏÂÐÐÃüÁȻºó°´ ENTER ¼ü£º
? GetScreenResolution()


×¢Ò⣺µ±Ç°ÆÁÄ»·Ö±æÂÊÏÔʾÔÚ¡°Á¢¼´´°¿Ú¡±ÖС£Èç¹ûµ±Ç°·Ö±æÂÊÊDZê×¼ VGA£¬ÔòÔÚ¡°Á¢¼´¡±´°¿ÚÖÐÏÔʾÏÂÁÐÄÚÈÝ£º
640x480


--------------------------------------------------------------------------------
Ïà¹ØÎÄÕÂ

Èÿؼþ×ÔÊÊÓ¦ÆÁÄ»·Ö±æÂÊ 2003-10-18 9:58:33


ϵͳÓÅ»¯
¿Ø¼þʹÓÃ
Êý¾Ý¿âÉè¼Æ
Êý¾Ý¿âÁ¬½Ó
ϵͳ°²È«
OLE×Ô¶¯»¯
³£¼ûÎÊÌâ
ʵÓôúÂë
ÊôÐÔÏê½â
ÍøÂçÏà¹Ø
ʵÓÃAPI
¾­Ñé·ÖÏí
¾«Ñ¡½Ì³Ì
×Ö·û´¦Àí
ADPÏà¹Ø



ÎÄÕÂËÑË÷



ÖÆ×÷ά»¤£ºÀîÑ°»¶     Mail:[email protected]

¹ØÓÚ±¾Õ¾ -- ÍøÕ¾·þÎñ -- °æȨÌõ¿î -- ÁªÏµ·½·¨ -- ÍøÕ¾°ïÖú
Access°®ºÃÕß°æȨËùÓÐ Copyright 2003-2005 All Rights Reserved δ¾­Ðí¿É²»µÃµÁÁ´