CClientDC dc(this);

    OnPrepareDC(&dc);//转换前记得使用该语句

    CDC* pDC = CDC::FromHandle(pCurve->m_hDC);
    CRect rect;
    rect = pCurve->m_rectTracker.m_rect;
   // pDC->LPtoDP(&rect);
    dc.LPtoDP(&rect);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2021-07-09
  • 2021-09-27
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案