OnKeyDown() Problem in Custom Controller

Im building a custom controller inherited directly from CWnd.
The problem is in OnKeyDown() I need to capture the arrow keys.
But it looks like the VK_UP/DOWN/LEFT/RIGHT keys arent sent to OnKeyDown()

All other keys, A-Z , Pageup/down, End, Home... are sent to OnKeyDown()
What so special with the arrow keys ?

In ::PreTranslateMessage(MSG *pMsg) I can capture the arrow keys with

if( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_UP)
{
// Arrow up key
}
But it feels more right to do it in OnKeyDown where all the other key captures are

/Mathias
[625 byte] By [result42] at [2007-11-18 2:14:50]
# 1 Re: OnKeyDown() Problem in Custom Controller
Actually, I believe the "better" way is to setup the arrow keys as accelerators and handle them like any other accelerator. Definitely avoids switches and ifs...
bytz at 2007-11-10 8:56:31 >