Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

simple(?) list view control problem

19 views
Skip to first unread message

immd40

unread,
Mar 7, 2001, 3:57:48 PM3/7/01
to
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).

I'm days into win32 programming so I'm sure this is something fundamental
that I've overlooked.

Thanks in advance,
immd


Roger Abbott

unread,
Mar 8, 2001, 2:07:21 PM3/8/01
to

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

BL

unread,
Mar 8, 2001, 6:58:21 PM3/8/01
to
Hi,

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...

Chip Calvert

unread,
Mar 11, 2001, 8:16:44 PM3/11/01
to
On Wed, 07 Mar 2001 20:57:48 GMT, "immd40" <immd40@trakcore..net>
wrote in <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

0 new messages