大神们求救!!!!
void CMy222Dlg::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
ClientToScreen(&point);
CRect rect;
GetDlgItem(IDC_BUTTON1)->GetClientRect(&rect);
GetDlgItem(IDC_BUTTON1)->ClientToScreen(&rect);
if (rect.PtInRect(point))
AfxMessageBox("1");
CDialog::OnLButtonUp(nFlags, point);
}
为什么按下去没有反应???
void CMy222Dlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rect;
m_sc.GetWindowRect(&rect);
ScreenToClient(&rect);
if (rect.PtInRect(point))
AfxMessageBox("1");
}
都没有反应???