List box not repainting correctly
C / C++ / MFC
1
Posts
1
Posters
5
Views
1
Watching
-
I have a dialog based app that has a list box. The listbox items are owner drawn. For now they are buttons instead of strings. When I start the app, and click the "Go" button, I want a new button to be added to the list box. The first one works fine, but if I click Go again, nothing shows up. If I keep clicking, scroll bars will appear, so I think the buttons are being added, they just aren't painting correctly. If I use the scroll bars to scroll up and down a few times, the first button (the only one that shows up) changes position, and then it also disappears. Any ideas? I can send some code, if that will help. Thanks, Stephanie