摘要: CRect rc = CRect(0,0,0,0); m_cEditPwd.GetClientRect(&rc); CDC* pDC = m_cEditPwd.GetDC(); TEXTMETRIC tm; pDC->GetTextMetrics(&tm); int nFontHeight = tm.tmHeight + tm.tmExternalLeading; int nMargin = (rc.Height() - nFontHeight) / 2; rc.DeflateRect(0,nMargin); m_cEditPwd.Set... 阅读全文
posted @ 2013-02-16 17:17 执迷不悟~ 阅读(259) 评论(0) 推荐(0)