VBÓëWindows API ¼äµÄºô½Ð¼¼ÇÉ
Ò»°ã»áʹÓÃWINDOW APIµÄÇé¿ö£¬ÊµÔÚÊÇÒòΪVB±¾Éí²»ÌṩijЩ¹¦ÄÜ£¬µ«ÊÇ£¬³ÌʽËù
ÐèÓÖ²»µÃ²»È»£¬ÀýÈ磺¶ÁÈ¡RegistryÄÚµÄ×Ê
ÁÏ£¬VBÖ»ÌṩSaveSetting¡¢Getsetting µÈ
ϵÁеÄÖ¸Áµ«ÊÇËüÖ»ÄܶÁÈ¡Ìض¨µØÇøµÄÖµ£¬Òª¶Á¡¢É¾¡¢¸ü¶¯ÆäËûÇøÓòµÄֵʱ£¬¾ÍÎÞ
·¨
ʹÓá£ÔÙÈ磺×Ðϸ¿´Ò»¿´Combo BoxµÄEvents£¬ÆäÖÐûÓÐMouseMove£¬µ«ÕâÊÇÎÒÃǾ³£ÓÃ
ÉϵÄÒ»¸öEvent£¬ÄǸÃÈç
ºÎÄØ£¿Êǵģ¬ÄÇÖ»ÓÐ͸¹ýWinodow API¡£¶øVBºô½ÐWindow APIÒ»
°ã²»¶¼Ê¹ÓÃAPI¼ìÊÓÔ±£¬Ö±½Ó½«Ïà¶ÔÓ¦µÄAPI COPYµ½
ÎÒÃǵijÌʽÖоͺã¬ÄÇ»¹ÓÃʲ÷á¼¼
ÇÉÂð£¿Æäʵ²»È»£¬ÒòΪVB×ÊÁϸñʽµÄÎÊÌ⣬ÓÖ¼ÓÉÏVB±¾ÉíûÓÐÖ¸±ê£¬ÔÚÐí¶àµØ·½ÐèÒªÒ»
ЩС¼¼ÇɲÅÄܽâ¾ö£¬
¶øÇÒÎÒÃǾ³£ÒòÓ¦²»Í¬µÄÐèÇ󣬽«API ¼ìÊÓÔ±µÄÐû¸æCOPY¹ýÀ´ááÔÙ
×öһЩÐ޸ģ¬×îÖØÒªµÄ£¬Èç¹ûÓÐÒ»¸ö.DLLµµ£¬Ëü²»ÔÚAPI ¼ìÊÓÔ±Öж¨
Ò壬ÄÇʱ£¬¾ÍÖ»ÓÐ
×Ô¼ºÏë°ì·¨À²¡£
Ò»¡¢ ÕûÊý²ÎÊý
Windows API32
λԪVB
============================== =============================
Int, INT ByVal Long
UNIT, DWORD ByVal Long
BOOL ByVal Long ture
ʱΪ1
WPARAM, LPARAM, LRESULT ByVal Long
Handle(Èç
HKEY) ByVal Long
WORD, ATOM, SHORT &nb
Ïà¹ØÎĵµ£º
1.ÓïÑÔ/»·¾³»ù´¡
--ÏîÄ¿µÄ×é³É
--ÓïÑÔ»ù´¡
----±äÁ¿µÄ×÷ÓÃÓòºÍÉú´æÆÚ
----»ù±¾Óï¾ä(forÑ»·,¸³ÖµÓï¾älet(ÆÕͨ±äÁ¿¸³Öµ),set(¶ÔÏóµÄ¸³Öµ,Ö»ÓÃset),·ÖÖ§Óï¾ä)
----¾²Ì¬Êý×éºÍ¶¯Ì¬Êý×é(Êý×éµÄÉùÃ÷,ÉÏϽçÈ·¶¨,¶¯Ì¬Êý×éµÄʹÓÃ,¶¨ÒåеÄÖ®ºó,Ôõô±£ÁôÒÔÇ°µÄÊý¾Ý)
----Ö÷ÒªµÄϵͳº¯ÊýºÍ¹ý³Ì(By ......
Ò»Ö±ÏëдÏÂÊý¾Ý¿â²Ù×÷·½ÃæµÄ£¬Ö»ÊÇûʲôʱ¼ä£¨ºÃÏñÊǽè¿Ú£¬Ó¦¸ÃÊÇÀÁ»òÕßûÐÄÇé°É£¬ºÇºÇ£©¡£×î½ü·¢ÏÖCSDNÉÏ
»¹ÊÇÿÌìÓÐÈËÒªÎÊÕâЩÄÚÈÝ£¬ÎÒÓеÄʱºò¾ÍÀÁµÄ»Ø´ð£¬ºÇºÇ£¬Ö÷Òª²»¶ÏµÄÈ¥ÕÒ´úÂë¸øËûÃÇÀÛ°¡¡£ËùÒÔ»¹ÊÇÌý¸ßÈ˵ģ¬À´
¸öÒ»ÀÍÓÀÒÝ£¬×Ô¼ºÖØÐÂÎÂÏ°Ï£¬Ò²ºÃ¸øÆäËûÈËһЩ°ïÖú¡£
Õâ¸öÊ ......
ÉÏһƪÖÐÎÒÒѾ˵ÁËÏÂÈçºÎ²Ù×÷ACCESSÊý¾Ý¿â£¬ÏÂÃæÀ´ËµËµ´æȡͼƬ£¬ÉùÒôÖ®ÀàµÄÎÊÌâ¡£
ÓÉÓÚͼƬ£¬ÉùÒô²»ÄÜÖ±½Ó´æ´¢£¬ÕâÀï¾ÍÒªÓõ½Êý¾ÝÁ÷·½Ê½ÁË¡£¶ÔÓÚ.NETÖеÄһЩÊõÓï¸ÅÄîÎÒÈÔÈ»ºÜÃÔºý£¬ÔÚѧϰÖС£Ö÷ÒªÎÒ²»ÊÇרҵµÄ£¬
Ö»ÊÇ¿ªÊ¼Ñ§Á˵ãVB6´úÂ룬Ȼºó¾ÍÓÃVB.NETÁË£¬ËùÒÔÄ¿Ç°Ö»ÊÇ»áдµã´úÂ룬ȴ²»Öªµ ......
Option Explicit
Private Declare Function CreatePipe Lib "kernel32" (phReadPipe As Long, phWritePipe As Long, lpPipeAttributes As SECURITY_ATTRIBUTES, ByVal nSize As Long) As Long
Private Declare Function WriteFile Lib "kernel32" ......