Code:
void CAboutDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
if(nFlags == MK_LBUTTON)
{
MessageBox("hi");
}
CDialog::OnLButtonUp(nFlags, point);
}
works beautifully, my question is what coding should i use so that the message box appears only if the left click is on a Static Text( ex: IDC_STATIC3) ... i understand how to detect the location of the click using point, but can i also use the point for detecting the actualing ID being clicked on, not just the point on the screen?