开发者

vb6: set SysTabControl32 by code

开发者 https://www.devze.com 2022-12-23 23:44 出处:网络
i\'m coding a little app for controlling soulseek - what i want do is clicking the \"Search Files\" button by code.

i'm coding a little app for controlling soulseek - what i want do is clicking the "Search Files" button by code.

i've got the handle to the tabbed control (SysTabControl32) and managed to change the tab with following code:

rc1 = SendMessage(hwnd, TCM_SETCURFOCUS, ByVal 0, ByVal 0&)  

the problem:

the tab control is changing to the proper button, but nothing happens. i assume i also also have to send a mouseclick to it, as when clicking by mo开发者_StackOverflowuse, the button goes down and up again.

any ideas how to do this?

thx


Use TCM_SETCURSEL instead.

Private Const TCM_FIRST               As Long = &H1300
Private Const TCM_SETCURSEL           As Long = (TCM_FIRST + 12)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号