Hi,

The purpose is the following. I have a button IDC_MYBUTTON. I want to handle two separate events: the first when the user pushes the button and then the second - when he releases it. Please help me to do that.

I tried to use WM_LBUTTONUP and WM_LBUTTONDOWN for the dialog which contains the button. But somehow it just doesn't execute the handlers when the user presses the button! It executes the handlers only when the user clicks on the dialog somewhere outside the button...