Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display problems in CListBox control

Status
Not open for further replies.

dima2

Programmer
Jan 20, 2002
85
LB
*Sometimes* (it isn't an all the time problem) a List Control will just not redraw. You can minimize a dialog that contains a List Control and when you maximize the dialog the control just is gone until you do something to force a repaint of portions of the control (such as clicking on one of the invisible items). Or you can place another window over part of the control and
when you remove the window the portion of the control that was covered does not redraw.

Does anyone have any idea, why this is happening?
 
Sounds to me like you've accidentally removed some of the code for updating the list box or something like that. Unfortunately, I'm not sure off hand where the code should be or what it should look like but MFC should automatically update the list box.
Can you force an update by adding/removing an item to the list?
 
the thing is, that the redraw functions are called equally whenever it does redraw and when it doesn't
sometimes these functions just don't do the job, why?
I'm sure I haven't touched any of the automatically generated code
 
I'm wondering if it's some setting in the properties of the list box resource. If the redraw functions are called equally then otherwise I'm as stuck as you are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top