正在加载图片...
程序的实现步骤 2.2 void CDocView Doc Draw Text(CDC *pDC) TEXTMETRIC tm pDC->Get TextMetrics(&tm) int nLineHeight tm tmHeight tm tmEXternalLeading CString str int line =0 POSITION pos=m strList GetHeadPositiono for(: pos NULL; m strList GetNext(pos)) str=m strList GetAt(pos) pDC->Text Out(O, line*nLineHeight, str) line++ pDC->Textout(O, line"nLine Height, m strLastLine程序的实现步骤 2.2 void CDocViewDoc::DrawText(CDC *pDC) { TEXTMETRIC tm; pDC->GetTextMetrics(&tm); int nLineHeight = tm.tmHeight + tm.tmExternalLeading; CString str; int line = 0; POSITION pos = m_strList.GetHeadPosition(); for( ; pos != NULL; m_strList.GetNext(pos) ) { str = m_strList.GetAt(pos); pDC->TextOut( 0, line*nLineHeight, str ); line++; } pDC->TextOut( 0, line*nLineHeight, m_strLastLine ); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有