How, if you had the button HWND could you send a message to it that would press it?
How, if you had the button HWND could you send a message to it that would press it?
In a perfect world every dog would have a home and every home would have a dog.
Visit My Web Site, Canine Programming
I use Win32 API
Yes
You use the fnction (in WIN32 API)
CheckDlgButton()
HWND of dialog, not button but you must know which dlg the button is on as you put it there
int ID of button on dialog, the ID in resource editor or the one from the HMENU cast.
UINT state
state =BST_UNCHECKED or BST_CHECKED
You can test its state with
IsDlgButtonChecked()
"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
i'm not sure this is what you want, but...
SendMessage(HANDLE_OF_BUTTON, BM_CLICK, 0, 0);
hope it helps.
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.