Chuck,
Instead of compare pMsg->message with WM_CHAR, try to compare it with
WM_KEYUP.
The code below should show a message box when the user press CTRL+TAB or
CTRL+F6.
if (pMsg->message == WM_KEYUP &&
GetKeyState(VK_CONTROL) &&
(pMsg->wParam == VK_TAB || pMsg->wParam == VK_F6))
{
AfxMessageBox("CTRL+TAB or CTRL+F6 was pressed!");
}
Hope it helps,
Vinicius
"Chuck Gabriel" escreveu na mensagem
news:ADE7E7CA4C86C16055D7BDFEB3942599@in.WebX.maYIadrTaRb...
> I am hoping someone will be willing to provide me with an explanation of
how
> to interpret various values for the members of the MSG parameter provided
to
> the acedFilterWinMsgFn function. I would like to be able to determine
what
> combination of keys was pressed by examining the wParam and lParam
members,
> but I have not been able to find any documentation on how to interpret the
> values. I tried to use the following function to figure out the values by
> experimentation, but I got some unexpected results.
>
> BOOL filterKeys(MSG *pMsg)
> {
> // Report Key string
> if (pMsg->message == WM_CHAR)
> {
> acutPrintf("\nKey String: %d", pMsg->wParam);
> return true;
> }
> return false;
> }
>
>
> Thanks,
>
> Chuck
>
> P.S. - I am not an ADN member, so links to docs posted on the ADN website
> won't do me any good.
>
>