VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: HiliteMenuItem(²Ëµ¥º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:39:20 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:27:28 2000) WWW-POST
HiliteMenuItem
VBÉùÃ÷
Declare Function HiliteMenuItem Lib "user32" Alias "HiliteMenuItem" (ByVal
hwnd As Long, ByVal hMenu As Long, ByVal wIDHiliteItem As Long, ByVal wHilite
As Long) As Long
˵Ã÷
¿ØÖƶ¥¼¶²Ëµ¥ÌõÄ¿µÄ¼ÓÁÁÏÔʾ״̬
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hwnd Long£¬ÓµÓж¥¼¶²Ëµ¥µÄÒ»¸ö´°¿ÚµÄ¾ä±ú
hMenu Long£¬hwnd´°¿ÚµÄ¶¥¼¶²Ëµ¥µÄ¾ä±ú
wIDHiliteItem Long£¬Óû¼ÓÁÁ»ò³·Ïû¼ÓÁÁµÄ²Ëµ¥ÌõÄ¿µÄ±êʶ·û¡£ÌÈÈôÔÚwHilite²ÎÊýÖÐÉè
ÖÃÁËMF_BYCOMMAND±êÖ¾£¬Õâ¸ö²ÎÊý¾ÍÓÃÓÚÖ¸¶¨Òª¸Ä±äµÄ²Ëµ¥ÌõÄ¿µÄÃüÁîID¡£Èç¹ûÉèÖõÄÊÇ
MF_BYPOSITION±êÖ¾£¬Õâ¸ö²ÎÊý¾ÍÓÃÓÚÖ¸¶¨ÌõÄ¿Ôڲ˵¥ÖеÄλÖ㨵ÚÒ»¸öÌõÄ¿µÄλÖÃΪ0£©
wHilite Long£¬Ò»ÏµÁг£Êý±êÖ¾µÄ×éºÏ¡£ÆäÖаüÀ¨MF_BYCOMMAND»òMF_BYPOSITION£¬Ö¸³ö
Òª¸Ä±äµÄÌõÄ¿¡£Ò²°üÀ¨MF_HILITE£¬ÓÃÓÚÉèÖüÓÁÁ״̬£»»òÕßMF_UNHILITE£¬ÓÃÓÚ³·Ïû¼ÓÁÁ
״̬
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.382ºÁÃë