BOOL CPrjDlg::PreTranslateMessage(MSG* pMsg)
{
if ((pMsg->message == WM_LBUTTONDOWN) || (pMsg->message == WM_LBUTTONUP)) //核心点
{
if (GetFocus() == GetDlgItem(IDC_EDIT_PRJ_NAME)) //根据不同控件焦点判断是那个在执行
{
char chHelp[100];
GetPrivateProfileStringA("Help", "102", "", chHelp, 100, GetPath("\\cfg\\help.ini").c_str());
SHOW_LEFT_TIPS(chHelp);
}
else
{
SHOW_LEFT_TIPS("");
}
}
return CBaseDlg::PreTranslateMessage(pMsg);
{
if ((pMsg->message == WM_LBUTTONDOWN) || (pMsg->message == WM_LBUTTONUP)) //核心点
{
if (GetFocus() == GetDlgItem(IDC_EDIT_PRJ_NAME)) //根据不同控件焦点判断是那个在执行
{
char chHelp[100];
GetPrivateProfileStringA("Help", "102", "", chHelp, 100, GetPath("\\cfg\\help.ini").c_str());
SHOW_LEFT_TIPS(chHelp);
}
else
{
SHOW_LEFT_TIPS("");
}
}
return CBaseDlg::PreTranslateMessage(pMsg);
}