Send a BM_CLICK message to the HWND of the button:
SendMessage(hButton, BM_CLICK, 0, 0);
That causes the button to receive WM_LBUTTONDOWN and WM_LBUTTONUP messages, and the parent to receive an BN_CLICKED notification, as if the user had physically clicked on the button.