HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

DoClick

Synthesize a click on the main button area.

C

void SftButton_DoClick(HWND hwndCtl);

C++

void CSftButton::DoClick();

Parameters

hwndCtl

The window handle of the button control.

Comments

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


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.