//艺术字体 void DrawTextString(CDC * pDC, LPCTSTR pszString, COLORREF crText, COLORREF crFrame, int nXPos, int nYPos, int aph) { //变量定义 int nStringLength=lstrlen(pszString); int nXExcursion[8]={1,1,1,0,-1,-1,-1,0}; int nYExcursion[8]={-1,0,1,1,1,0,-1,-1}; //int nXExcursion[4]={1,0,-1,0}; //int nYExcursion[4]={0,1,0,-1};
LOGFONT logfont; CFont *oldfont, nowfont;
oldfont=pDC->GetCurrentFont(); oldfont->GetLogFont(&logfont);
logfont.lfEscapement = 10*aph;
nowfont.CreateFontIndirect(&logfont); oldfont = pDC->SelectObject(&nowfont);
//绘画边框 pDC->SetTextColor(crFrame); for (int i=0;i