Travis Michielsen <tjmichielsen(a)yahoo.com> wrote in article <20010726134156.97724.qmail(a)web14204.mail.yahoo.com>...
--- Bill Medland <medbi01(a)accpac.com> wrote:
Travis Michielsen <tjmichielsen(a)yahoo.com> wrote in article <20010725154148.15682.qmail(a)web14205.mail.yahoo.com>...
Fully implement DrawText* functions.
Thank you ; thank you; thank you
Weird coincidence. I had just started thinking about problems with
the
display of large icon names in the ListView control and was about to start digging into who was supposed to be handling the word-wrapping etc.
(Shows
how little I know about Windows doesn't it). Now I don't have to think (but I'll look to see if the format is correct)
Bill
Glad I could help! :) Hopefully it works for you. Just hope its tested enough that it works good in all situations.
- Travis Michielsen
Sorry, it doesn't. There are some problems down in the core to do with the handling of DT_WORD_ELLIPSIS in non-single-line controls etc. (The ellipsis handling needs to be in the TEXT_NextLineW).
Are you well set up to handle all that stuff or shall I? (After all, I have the offending cases with which to test)
Bill
Sorry to hear that. I will be able to look into it but if anyone has any test programs they would help ALOT. How about the Hello World sample program from Petzold 3rd edition chapter 2 with tiny modifications.
Personally the difficult bit for me is designing the experiments themselves. If you like I can create some of the test cases if you want to do the coding. Do you want to take this off the newsgroup? By the way, how about using GetTextExtentExPoint to measure the string, that way you don't need to worry about the kerning etc; the only complication is the tabs. Bill