BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) 
{ switch(pMsg->message)
{
case WM_KEYDOWN:
if (pMsg->wParam == 'V' || pMsg->wParam == 'v')
{
if((GetKeyState(VK_LCONTROL) < 0) || (GetKeyState(VK_RCONTROL) < 0))
{
CEdit *pEdit=(CEdit*)GetFocus();
if(pEdit->GetDlgCtrlID()==IDE_USER)
m_editUser.Paste ();
else if(pEdit->GetDlgCtrlID()==IDE_PASSWORD)
m_editPassword.Paste();
else if(pEdit->GetDlgCtrlID()==IDE_PORT)
         m_editPort.Paste();

CComboBox *pComboBox=(CComboBox*)GetFocus();
if(pComboBox->GetDlgCtrlID() == IDC_SERVERNAME)
           m_comboboxServer.Paste ();
}
}
break;
} return CMDIFrameWnd::PreTranslateMessage(pMsg);
}我的工具栏上有一个CComboBox,三个CEdit,为什么上面的代码那三个CEdit都有效,而我的CComboBox却无效?我对过了,ID号没有错误.