怎样使我的CEdit的文本垂直居中啊?

解决方案 »

  1.   

    This function draws formatted text in the specified rectangle. It formats the text according to the specified format method.int DrawText(
    HDC hDC, 
    LPCTSTR lpString, 
    int nCount, 
    LPRECT lpRect, 
    UNIT uFormat
    );
      

  2.   

    1.直接去资源管理器那里修改属性.2.          CEdit *pEdit = (CEdit*)GetDlgItem(IDC_EDIT_ALIGN);
    CClientDC dc(pEdit);
    dc.SetTextAlign(TA_CENTER);**********
    不过,都只能是实现水平居中而已,垂直居中我不知怎作.
      

  3.   

    呵呵,sorry,大意了,我写的不对的.