List control problem.
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I'm using
int res= m_cListControl.InsertItem(&lvi);
to insert item in list box, but problem is that inserted item shud be reflected after execution of above statement, but it reflects after control comes out of that function, so please give me hint or solution.
-
I'm using
int res= m_cListControl.InsertItem(&lvi);
to insert item in list box, but problem is that inserted item shud be reflected after execution of above statement, but it reflects after control comes out of that function, so please give me hint or solution.
May be you could call RedrawItems followed by UpdateWindow as soon as you call insert and item into the list control.