I'm days into win32 programming so I'm sure this is something fundamental
that I've overlooked.
Thanks in advance,
immd
I remember having a similar problem some time ago. I solved it by
InvalidateRect on the handle of the ListView on WM_SIZE with restored or
maximized, but I never got to the bottom of why it happened.
--
Roger Abbott
http://www.rhaminisys.com
DDE ActiveX Controls for VB. DDE FAQ
Other freeware and shareware
I got pretty much the same problem. All the item icons (icon only, text
still there) dispear when parent window of listview control changes the
poistion (or the screen refreshed). Since I used ImageList_AddIcon to add
several different icons in list view control, if I made all items the same
icon (the very first icon in the list), then there is no such a problem. Any
suggestion? Thanks.
immd40 <immd40@trakcore..net> wrote in message
news:ghxp6.5464$x4.5...@newsread2.prod.itd.earthlink.net...
>I'm having a small problem with a child ListView I created via standard
>Win32 calls on Win2K. Specifically, the control does not redraw itself when
>minimized and then restored (only after the control has been 'touched' in
>some way: clicking the header, clicking an item, sizing a column).
Are you storing the images indices and text in the control itself,
are you handling LVN_GETDISPINFO, or is it an owner-drawn control?
--
Chip Calvert | Software Design/Development
Celtic Wolf, Inc. | Project Management
http://www.celticwolf.com/ | Technical Writing
(703) 580-0210 | Research