this code can be used to detect the settings...
CDC ScreenDC;
ScreenDC.CreateIC(_T("DISPLAY"), NULL, NULL, NULL);
const int x = ScreenDC.GetDeviceCaps(LOGPIXELSX);
const int y = ScreenDC.GetDeviceCaps(LOGPIXELSY);
if (x == 96 && y == 96)
{
//Small Font
}
else if (x == 120 && y == 120)
{
//Large Font
}
else
{
//Custom Font setting
}
the only real workaround for this problem is to use, depending on the small / large font setting, two different dialog templates.. YUCK... i don't know any better solution (other than banning the LARGE fonts).. so i would be pleased if anybody knew a better workaround.. Bernhard "The remarkable thing about my mother is that for thirty years she served us nothing but leftovers. The original meal has never been found." Calvin Trillin