I think you need to declare a TEXTMETRIC structure and fill it with GetTextMetric(HDC dc, TEXTMETRIC *texm );//<---sample prototype

Anyway try it and also create two ints to hold the current output location(X,Y). Set Y to = texm.tmHeight + texm.ExternalLeading, then when you are ready to print on a new line, do Y+=Y;

Of course Y, and X will be arguments passed to TextOut(), anyway hope that helps a little!

Windows is so confusing! Even Simple things are made difficult!