当前位置:神舟问>百科知识>SendMess来自age

SendMess来自age

2023-12-06 10:22:25 编辑:join 浏览量:549

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

SendMess来自age

'Thisprojec秋市谈料宜沙粉路tneedsaListBox,namedList1andaTextBox,namedText1

PrivateDeclareFunctionSendMessageLib"user32"Alias"SendMessageA"(ByValhwndAsLong,ByValwMsgAsLong,静目元略学培克思空季台ByValwParamAsInteger,ByVallParamAsAny)AsLon食负促斤氧g

ConstLB_FINDSTRING=&H18F

PrivateSubForm_Load()

'Addsomeitemstothelistbox

WithList1

.AddItem"Computer"

.AddItem"Screen"

.AddItem"Modem"

.AddItem"Printer"

.AddItem"Scanner"

.AddItem"SoundBlaster"

.AddItem"Keyboard"

.AddItem"CD-Rom"

.AddItem"Mouse"

EndWith

EndSub

PrivateSubText1_Change()

'在TEXT中输入单词比喻modem上面的LIST会选中费席静协弱处记你所输入的词

List1.List罗费击Index=SendMessage(List1.hwnd,LB_FINDSTRING,-1,ByValCStr(Text1.Text))

EndSub

标签:SendMess,age,来自

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