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 wOOdy-Soft 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?
 
look through your code and make sure your redraw is called in these such instances. If the redraw is called, it will redraw regardless...for some reason or other, it's not being called in the instances you mentioned. Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
i made sure that the redraw functions are being called everytime, but sometimes they just don't do the job
why?
 
make sure you are calling your redraw for your controls as well as your window...a good idea would be to use the onUpdate (or on refresh, i forget) for each window to preform a redraw on all visible controls, AND the window itself. Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
thanks,
I tried invalidating the listbox, it worked
the listbox was redrawn except that it looks different
for exemple the borders are gone
what I can I do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top