Refreshing problem in User Defined List Control (CListCtrl)
-
Hello, I am using an user defined List Control in my application. (CXListCtrl provided by Mr. Hans in Code Project). If any other window (whose size is less than the size of Control size) is placed and removed that area is not repainted. When I checked OnPaint () of the implemeentation of control is left for default by calling Default () function. I tried to replace Invalidate () before that but it goes for indefinite loop as Invalidate () also invokes OnDraw function. I tested by invoking a notepad making the size of it less than the size of List control, place it on top the control and switch back to my application. I find the area of notepad being blank. Placing some TRACE Message I found that OnDraw () function of the control is called when i do that test. But since Default () function is called it is not painting that area. Can any one suggest me what can be done to avoid the repainting problem? I am developing an MFC SDI application in .NET environment on Windows XP. Thanks for your Time Ravi