--- Bill Medland <medbi01(a)accpac.com> wrote:
I don't like submitting incomplete code but I may
have little choice unless
someone can point me in the correct direction here. As you may guess from
the following, my Windows experience is not that extensive but I think it's
enough to allow me to make sensible contributions.
I am working on correcting the LISTVIEW_DrawLargeItem function, especially
when the item text is large. I have already got most of the way. However
the problem is this.
When a user selects a large icon the text should be written completely (by
calling DrawText with DT_NOCLIP). It is doing so; I can prove it by
resizing the window and I will see the full text being displayed for a
selected item. However when drawing it at the moment of selecting it, the
text is being clipped to the usual two and a bit rows. Presumably this
means that there is a clipping rectangle in the DC or the window that I
need to inflate. Or Do I simply invalidate that rectangle (from within the
WM_PAINT handler!!!).
Any help would be appreciated.
Bill
Looking at the DrawText code I see that DrawText just passes the NOCLIP flag to
ExtTextOut, so the problem I likely not with DrawText but with ExtTextOut
instead. I can take a look at the code for both functions (time providing) and
find out what is happening.
- Travis Michielsen
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/