Synthesize a click on the main button area.
C
void SftButton_DoClick(HWND hwndCtl);
C++
void CSftButton::DoClick();
hwndCtl
The window handle of the button control.
DoClick runs the full click sequence: pressed-state rendering and bounce animation, BN_CLICKED notification to the parent window, and - for toggle buttons - flipping of fPressed. It does not click the dropdown arrow; use DoClickDropDown for that.
DoClick is the programmatic equivalent of the user pressing and releasing the primary mouse button over the button. Useful for keyboard shortcuts that should look, sound and behave exactly like a mouse click.
See Also DoClickDropDown | QueryChar