ListControl Problem
-
Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf
-
Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf
Why are you using
InvalidateRect()
with a list control?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf
Dear friend, Interesting challenge, i tried this out find if this solution suits u ! //////---- Start only during minimize & restore u have this problem, ///// 1.so get OnCaptureChanged event handler of u r window /// 2.Send message to window to focus u r dialog // / void CModallessDlg::OnCaptureChanged(CWnd *pWnd) { SendMessage (WM_SETFOCUS,0,0); CDialog::OnCaptureChanged(pWnd); } Muthu Ramji.Al.V Software Developer(VC++) Sify Limited muthu_ramji@sifycorp.com