You aren't sending the correct message.
Try using BM_CLICK
(0x00F5) in your call to SendMessage(). That should work provided that hwndChild
is the window handle of the button, rather than the container dialog box.
BN_CLICKED
doesn't work because that is a notification code, not a message.