How do I virtually press this button? (HWND hMyButton)
Printable View
How do I virtually press this button? (HWND hMyButton)
SendMessage() and use BN_CLICKED
Like this:?
SendMessage(hMyButton, BN_CLICKED, 1, NULL);
more like....
SendMessage(hDialog, WM_COMMAND, MAKEWPARAM(ID_MYBUTTON, BN_CLICKED) , hwndMyButton );
should have MAKEWPARAM() ( and MAKELPARAM() ) from including Windows.h
Okay, I got it, thanks.