How do I virtually press this button? (HWND hMyButton)
How do I virtually press this button? (HWND hMyButton)
SendMessage() and use BN_CLICKED
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
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
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Okay, I got it, thanks.
Last edited by Queatrix; 08-19-2005 at 10:33 AM.