You need to override CWnd::PreTranslateMessage(). There is a lot of information concerning this function and handling accelerators in the MSVC on-line help.

Regards,

Paul McKenzie