..

BOOL CQuickMosaicDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message==WM_KEYDOWN) //键盘按下
{
if (pMsg->hwnd==GetDlgItem(IDC_DATALIST)->m_hWnd)
{
switch (pMsg->wParam)
{
case 'A'://A键
if (::GetKeyState(VK_CONTROL)<)//CTRL键
{
//操作...
}
return TRUE;
case VK_UP: //上键
//操作...
return TRUE;
}
}
}
}
04-30 07:08