看到有人的帖子上是這么寫的:
CEdit edit;
CRect rc;
edit.GetClientRect(&rc);
CDC* pDC=edit.GetDC();
CSize sz=pDC->GetTextExtent("abc");
CRect rect(0,0,rec.Width(),sz.cy);
rect.OffsetRect(rec.CenterPoint()-rect.CenterPoint());
edit.SetRect(&rect);
但我需要把用StreamOut函式把居中格式保存到rtf檔案里,這樣是不是只改變了顯示的格式,沒有改變檔案格式?
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/269828.html
標籤:基礎類
下一篇:微信計算機原理資料傳送
