VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: SendMessageCallback(WindowsÏûÏ¢)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:09 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Fri Mar 31 01:24:31 2000)
SendMessageCallback
VBÉùÃ÷
Declare Function SendMessageCallback Lib "user32" Alias "SendMessageCallback
A" (ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lPara
m As Long, ByVal lpResultCallBack As Long, ByVal dwData As Long) As Long
˵Ã÷
½«Ò»ÌõÏûÏ¢·¢¸ø´°¿Ú¡£¸Ãº¯Êý×î´óµÄÌض¨ÊÇ¿ÉÒÔÁ¢¼´·µ»Ø¡£Ä¿±ê´°¿Úº¯ÊýÖ´ÐÐÍê±Ïºó£¬
»áÓûص÷º¯ÊýµÄÐÎʽ½«½á¹û·µ»Ø
·µ»ØÖµ
Long£¬TRUE±íʾ³É¹¦£¬FALSE±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hwnd Long£¬Òª½ÓÊÕÏûÏ¢µÄÄǸö´°¿ÚµÄ¾ä±ú
msg Long£¬ÏûÏ¢µÄ±êʶ·û
wParam Long£¬È¡¾öÓÚÏûÏ¢
lParam Long£¬È¡¾öÓÚÏûÏ¢
lpResultCallBack Long£¬Ö¸¶¨º¯ÊýµØÖ·¡£ÔÚvb5ÖпÉÓÃAddressOf²Ù×÷·û»ñµÃ
dwData Long£¬Óû§×Ô¶¨ÒåÖµ
×¢½â
»Øµ÷º¯ÊýÉùÃ÷ÈçÏ£º
Public Function WndProc(ByVal hwnd&, ByVal msg&, ByVal wp&, ByVal lp&) As Lo
ng
ÆäÖУ¬wp²ÎÊýÊÇ×÷ΪdwData²ÎÊý´«µÝµÄÖµ¡£lp²ÎÊý°üº¬ÁËÀ´×Ô´°¿Úº¯ÊýµÄ½á¹û
--
²»Ð´ÁË£¬Ã»Ê²Ã´¿É˵µÄÁË.....
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: blo0m.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.057ºÁÃë