On 10/5/13, webwraith <webwra...@fastmail.fm> wrote: > ...And that will teach me to look further. SM_CXMIN and SM_CYMIN > are measured in pixels. I'll need to find out how big my font is, > as well, but I'm pretty sure that 60x30 at the default system > font should be bigger.
Ah right you are. For that I think you can use something like this: TEXTMETRIC tm; GetTextMetrics(hdc, &tm); // Dimensions of the system font don't change // during a Windows session int cxChar = tm.tmAveCharWidth; int cyChar = tm.tmHeight + tm.tmExternalLeading; There's a bunch of these calls in the SysMetrics examples you can look at here: https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Chap04