title: How to statistic every button click in mfc using message loop mechanics?
body: <p>I have a MFC application. I want to statistic every button click, including button ID and time. Can I do it in <code>CWinApp::PreTranslateMessage(MSG* pMsg)</code> or  <code>CWnd::PreTranslateMessage(MSG* pMsg)</code>? And how?</p>