Crazy_Challenger

导航

 

void CPictureExDemoDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default

CRect rect;
m_Picture.GetWindowRect(&rect);
ScreenToClient(&rect);

if (rect.PtInRect(point))
ShellExecute(AfxGetMainWnd()->m_hWnd,_T("open"),
_T("http://www.rsdn.ru"),_T(""),NULL,0);

CDialog::OnLButtonDown(nFlags, point);
}

posted on 2019-08-29 16:54  Crazy_Challenger  阅读(238)  评论(0)    收藏  举报