BOOL CTestDialogDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_LBUTTONUP) { CWnd* focusCtrl = GetFocus(); LPTSTR className =""; int i = GetClassName(focusCtrl->m_hWnd,szClassName, sizeof(szClassName)); if(!lstrcmpi(szClassName, _T("Edit"))) { focusCtrl->SetWindowText("Is Edit"); } } return CDialog::PreTranslateMessage(pMsg); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)