开发者

vb6: set SysTabControl32 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜