GetTextExtent vs. DrawText (with DT_CALCRECT)
Working on an MFC app that has just been converted to Unicode (finally!), I noticed that one button (which is created dynamically) is too small to fit the text in Korean (and Russian and a few other languages).
The code was calling something like:
CSize sz = m_btAdjustColors.GetDC()->GetTextExtent(sCaption);
It seems correct, but these script languages are throwing it [...]
Popularity: 2% [?]
Filed under: Code, Tips | No Comments »











