[comp.windows.ms] Windows SDK Programming Question

nancie@hal.CSS.GOV (Nancie Matson) (06/14/90)

I am a Windows SDK developer and I am having a problem.

I have a file with many lines of text in it.  I want to
display the text with word-wrap in a vertical scrolling 
re-sizeable window.  The approach I've used is to create 
a long string with embedded '\n' and set a LPSTR to it.
Then I GetClientRect for my window and DrawText (because
of the word wrap feature) into the window.  The height of 
my text is greater than that of the window, so I've been
using OffsetRect to move my rectangle around based on
the Vertical Scroll increment.  This works...sort of.

It seems awkward, and I'm sure there's a better way.
Am I using the wrong approach?  Should I be using
a TextOut with a separate justify function?

Any suggestions or help is appreciated.  Please e-mail to
me at:
		nancie@hal.CSS.GOV

I will post a follow-up if any-one else requests the
information.

Thanks in advance.

-Cricket

p.s  This is not my account, so be kind...