16,471
社区成员
发帖
与我相关
我的任务
分享
BOOL CFrequencyDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
CString temp;
if(pMsg->wParam == VK_BACK)
{
GetDlgItem(IDC_EDIT1)->GetWindowText(temp);
if(temp.GetLength() == 1)
{
GetDlgItem(IDC_EDIT1)->SetWindowText("0");
return TRUE;
}
}
return CDialog::PreTranslateMessage(pMsg);
}