VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetMenuItemRect(²Ëµ¥º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:15 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:26:05 2000) WWW-POST
GetMenuItemRect
VBÉùÃ÷
Declare Function GetMenuItemRect Lib "user32" Alias "GetMenuItemRect" (ByVal
hWnd As Long, ByVal hMenu As Long, ByVal uItem As Long, lprcItem As RECT) As
Long
˵Ã÷
ÔÚÒ»¸ö¾ØÐÎÖÐ×°ÔØÖ¸¶¨²Ëµ¥ÌõÄ¿µÄÆÁÄ»×ø±êÐÅÏ¢
·µ»ØÖµ
Long£¬TRUE£¨·ÇÁ㣩±íʾ³É¹¦£¬·ñÔò·µ»ØÁã¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hWnd Long£¬°üº¬Ö¸¶¨²Ëµ¥»òµ¯³öʽ²Ëµ¥µÄÒ»¸ö´°¿ÚµÄ¾ä±ú
hMenu Long£¬²Ëµ¥µÄ¾ä±ú
uItem Long£¬Óû¼ì²éµÄ²Ëµ¥ÌõÄ¿µÄλÖûò²Ëµ¥ID
lprcItem RECT£¬ÔÚÕâ¸ö½á¹¹ÖÐ×°Ôز˵¥ÌõÄ¿µÄλÖü°´óС£¨²ÉÓÃÆÁÄ»×ø±ê±íʾ£©
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.242ºÁÃë