I use PreTranslateMessage() to capture F5 key in CMyApp for FormView derived project. I want to trigger dosomething() when i push F5
dosomething(); //dosomething is a function in CMyView
problem is, every time i press F5, dosomething() gets trigger twice. What is the problem?
Dosomething() is ok, as i also map it to a button click event, and it trigger once only if i click on button
sorry for the bit short code been put up, i hope this is enough to highlight my problem.