Add this 2 blocks to your class source file:
<br />
BEGIN_MESSAGE_MAP(YourClassName, YourBaseClass)<br />
ON_BN_CLICKED( BUTTON_ID, OnBtnClick )<br />
END_MESSAGE_MAP()<br />
<br />
afx_msg void YourClassName::OnBtnClick()<br />
{<br />
MessageBox( "Some test text" );<br />
}<br />
Add this line to your class header file:
<br />
afx_msg void OnBtnClick();<br />
That's all... what else do you need? :)