I'm making an mdi text editor, and I just finished the part that loads all the screen and printer fonts into a combo box on the toolbar (using some API functions so it only takes about .34 s). Does anyone know how to make or retrieve an appropriate list of font sizes similar to the ones in program like MS Word? I see that for TrueType fonts, there are certain numbers that remain constant, and then for other fonts there are different numbers. Is this info somehow stored in the font itself?

Another thing I wanted to ask was about an API that could be used to search the contents of a list/combo box and return the index of a matching object. I know I've seen something like it before, but it's left my mind Would anyone happen to know what this is? I believe it was using SendMessage, but I'm not sure.