在客户区指定位置显示一字符串
    CRect r;//创建矩形对象
    GetClientRect(&r);//获取窗口大小
    int x=r.right/2,y=r.bottom/2;
    pDC
->SetTextAlign(TA_CENTER|TA_BASELINE);
    pDC
->TextOut(x,y,_T("hello"));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案