Freezing a list control
-
Hi, I have an application which contains a listcontrol in report view. When the user is viewing the data in the list, more data can get inserted into the list in the background. This would cause the list control to scroll. This is nuisance from the user's point of view, because he cannot see what he wants as the list gets scrolled frequently. Now, I want to provide an option through which the user can freeze the view that he is looking at. The list control should then just update the scrollbars (indicating that more data is being added) only. Can someone please help me in acheiving this? Krishnan
-
Hi, I have an application which contains a listcontrol in report view. When the user is viewing the data in the list, more data can get inserted into the list in the background. This would cause the list control to scroll. This is nuisance from the user's point of view, because he cannot see what he wants as the list gets scrolled frequently. Now, I want to provide an option through which the user can freeze the view that he is looking at. The list control should then just update the scrollbars (indicating that more data is being added) only. Can someone please help me in acheiving this? Krishnan
Try experimenting with SetRedraw() (2b || !2b)
-
Hi, I have an application which contains a listcontrol in report view. When the user is viewing the data in the list, more data can get inserted into the list in the background. This would cause the list control to scroll. This is nuisance from the user's point of view, because he cannot see what he wants as the list gets scrolled frequently. Now, I want to provide an option through which the user can freeze the view that he is looking at. The list control should then just update the scrollbars (indicating that more data is being added) only. Can someone please help me in acheiving this? Krishnan
-
use InsertItem(&Item) where item is a LVITEM structure and has stateMask = 0 this does exactly what you want, it inserts the new item without focusing on it. ORi.
Hi, I tried your solution. But, it does not work when the items are being added in the beginning.