Jump to content

avinash.pandey

Newbies
  • Posts

    1
  • Joined

  • Last visited

avinash.pandey's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Below is the snippet CFont font; VERIFY(font.CreateFont( 40, // nHeight 20, // nWidth 0, // nEscapement 0, // nOrientation FW_DONTCARE, // nWeight FALSE, // bItalic FALSE, // bUnderline FALSE, // cStrikeOut DEFAULT_CHARSET, // nCharSet OUT_DEFAULT_PRECIS, // nOutPrecision CLIP_DEFAULT_PRECIS, // nClipPrecision DEFAULT_QUALITY, // nQuality DEFAULT_PITCH, // nPitchAndFamily _T("AJANTHA"))); // lpszFacename // Do something with the font just created... CClientDC cdc(this); CFont* def_font = cdc.SelectObject(&font); cdc.TextOut(11, 11, _T("€ € ~ ƒ „ …"), 11); cdc.SelectObject(def_font); Font mFont(dc.m_hDC, font); SolidBrush BlueBrush(Color(255, 0, 0, 255)); graphics.DrawString( strText, -1, &mFont, PointF(0, 150), pStringFormat, &BlueBrush); // Done with the font. Delete the font object. font.DeleteObject(); AJANTHA.zip
×
×
  • Create New...