vb6: set SysTabControl32 by code

Posted by Fuxi on Stack Overflow See other posts from Stack Overflow or by Fuxi
Published on 2010-03-19T01:58:54Z Indexed on 2010/03/19 2:01 UTC
Read the original article Hit count: 343

Filed under:
|
|

hi,

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 mouse, the button goes down and up again.

any ideas how to do this?

thx

© Stack Overflow or respective owner

Related posts about vb6

Related posts about api