VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetWindow(¿Ø¼þÓëÏûÏ¢)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:39:10 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Wed Mar 29 23:11:14 2000) WWW-POST
GetWindow
VBÉùÃ÷
Declare Function GetWindow Lib "user32" Alias "GetWindow" (ByVal hwnd As
Long, ByVal wCmd As Long) As Long
˵Ã÷
»ñµÃÒ»¸ö´°¿ÚµÄ¾ä±ú£¬¸Ã´°¿ÚÓëijԴ´°¿ÚÓÐÌض¨µÄ¹Øϵ
·µ»ØÖµ
Long£¬ÓÉwCmd¾ö¶¨µÄÒ»¸ö´°¿ÚµÄ¾ä±ú¡£ÈçûÓÐÕÒµ½Ïà·û´°¿Ú£¬»òÕßÓöµ½´íÎó£¬Ôò·µ»ØÁãÖµ
¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hwnd Long£¬Ô´´°¿Ú
wCmd Long£¬Ö¸¶¨½á¹û´°¿ÚÓëÔ´´°¿ÚµÄ¹Øϵ£¬ËüÃǽ¨Á¢ÔÚÏÂÊö³£Êý»ù´¡ÉÏ£º
GW_CHILD Ñ°ÕÒÔ´´°¿ÚµÄµÚÒ»¸ö×Ó´°¿Ú
GW_HWNDFIRST Ϊһ¸öÔ´×Ó´°¿ÚÑ°ÕÒµÚÒ»¸öÐֵܣ¨Í¬¼¶£©´°¿Ú£¬»òÑ°ÕÒµÚÒ»¸ö¶¥¼¶´°¿Ú
GW_HWNDLAST Ϊһ¸öÔ´×Ó´°¿ÚÑ°ÕÒ×îºóÒ»¸öÐֵܣ¨Í¬¼¶£©´°¿Ú£¬»òÑ°ÕÒ×îºóÒ»¸ö¶¥¼¶´°¿Ú
GW_HWNDNEXT ΪԴ´°¿ÚÑ°ÕÒÏÂÒ»¸öÐֵܴ°¿Ú
GW_HWNDPREV ΪԴ´°¿ÚÑ°ÕÒÇ°Ò»¸öÐֵܴ°¿Ú
GW_OWNER Ñ°ÕÒ´°¿ÚµÄËùÓÐÕß
×¢½â
Ðֵܻòͬ¼¶ÊÇÖ¸ÔÚÕû¸ö·Ö¼¶½á¹¹ÖÐλÓÚͬһ¼¶±ðµÄ´°¿Ú¡£Èçij¸ö´°¿ÚÓÐÎå¸ö×Ó´°¿Ú£¬ÄÇÎå
¸ö´°¿Ú¾ÍÊÇÐֵܴ°¿Ú¡£¾¡¹ÜGetWindow¿ÉÓÃÓÚö¾Ù´°¿Ú£¬µ«ÌÈÈôÒªÔÚö¾Ù¹ý³ÌÖÐÖØж¨Î»
¡¢´´½¨ºÍÇå³ý´°¿Ú£¬ÄÇôEnumWindowsºÍEnumChildWindows¸üΪ¿É¿¿
Àý×Ó£º
1-9£¬1-11,1-14,1-32,
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.434ºÁÃë