void CMouseClickDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
    CDialogEx::OnLButtonDown(nFlags, point);
    CRect rt;
    m_Title.GetWindowRect(&rt);
    ScreenToClient(&rt);
    if ((point.x >= rt.left && point.x <= rt.right)
        && (point.y >= rt.top && point.y <= rt.bottom))
    {
        PostMessage(WM_NCLBUTTONDOWN,HTCAPTION,MAKELPARAM(point.x,   point.y));
    }
}

 

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2021-08-28
  • 2021-08-18
  • 2022-02-18
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2022-01-30
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案