I am using the following code to set the font of a list box control, but it seems to have a limitation on the smallest size the font can have. I need the font to be about halg as large as 12, but if I lower the number below 12 (let's say 1), the font appears with a pixel-size of 12. What's happening? How can I make the font smaller? Also, can different entries in a list box have different fonts (i.e., some bold, others not?)
Thanks. . .
LOGFONT lf; // Used to create the CFont.
memset(&lf, 0, sizeof(LOGFONT)); // Clear out structure.
lf.lfHeight = 12; // Request a 12-pixel-high font
strcpy(lf.lfFaceName, "Courier"); // Request font
ListBoxFont.CreateFontIndirect(&lf); // Create the font.
m_capfixture.SetFont(&ListBoxFont); // set the font