I have a dialog with a combobox on it. And in PreTranslateMessage() I want to check if the focus is on the combobox. So I do the following:

void CMyDialog::PreTranslateMessage(MSG* pMsg)
{
int ret = CDialog::PreTranslateMessage();

if(pMsg->message==WM_KEYUP)
if(GetDlgItem(IDC_COMBO) == GetFocus())
{
// do something
}

return ret;
}

the second if always return FALSE. Where do I fail?