SendMessage to "unknown" button in known window
Posted on 2003-03-06
I am trying to send a Button Click command to a button that I only know the caption of in a form/window that I have the handle to... does any one know how to do this?
The solution I am trying now is to send key strokes to the window to step to the button and press it, but I have a problem here as well.... I cant figure out how to send the ctrl + tab command to change the field in the tab control in the form.
(what I need to send in this case is "tab, tab, tab,ctrl + tab, ctrl + tab, tab, enter")
The first solution to send the message directly to the button or to the WM_COMMAND in the window would be better, but I don't know what to send and where.... just as I said... the caption of the button and the handle to the form.
Thanks in advance!