当前位置:知之问问>生活百科>SendMessage

SendMessage

2024-09-13 15:53:17 编辑:join 浏览量:517

问题补充说明:谁能给我SendMessage 的用法(详细)

SendMessage

'Thisproje来自ctneedsaListBox,namedList1andaTextBox,namedText1

PrivateDeclareFunctionSendMessageLib"user32"Alias"SendMessag毛真念各阻吸西论容粮eA"(ByValhwndAsLong,ByValwMsgAsLong,ByValwPara书谓学造矿村感英mAsInteger,ByVallParamAsAny)AsLon360问答g

ConstLB_FINDSTRING=&H18F

PrivateSubForm_Load()

'Addsomeitemstothelistbox

WithList头游病层史善1

.AddItem"Computer"

.AddItem"Screen"

.AddItem"Modem"

.AddItem"Printer"

.AddItem"Scanner"

.AddItem"S主兴飞止细异沉光鸡例谓oundBlaster"

.AddItem"Ke还式耐肉批干细杂查乐yboard"

.AddItem"CD-Rom"

.AddItem"Mouse"

EndWith

EndSub

PrivateSubText1_Change()

'在TEXT中输入单宽排范洲血才词比喻modem上面的LIST会选中你所输入的词

List1.ListIndex=Sen跟电成斗皮械保丰好dMessage(List1.hwnd,LB_FINDSTRING,-1,ByValCStr(Text1.Text))

EndSub

标签:SendMessage

版权声明:文章由 知之问问 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.zhzhwenwen.com/life/338811.html
热门文章