Thankyou very much Victor. I tried to extract the HDC from the owl context.
But somehow it doesnot work
Code:HDC hdc = dc.GetHDC(); CFont* pCurrent = hdc.GetCurrentFont(); LOGFONT lf ; pCurrent->GetLogFont(&lf) ; lf.lfHeight -= -4 ; // make the font larger by 4 // yopu may need to check what you actually get in the LOGFONT object at this point // to make sure you adjust the correct parameter, in the right direction to make the font bigger CFont local_font ; local_font.CreateFontIndirect(&lf) ; pDC->SelectObject(&local_font) ; DrawText(...) ; pDC->SelectObject(pCurrent) ;




Reply With Quote
