G
Guest
I have application which displays dialog containing CListCtrl control.
The OnTimer message handler updates values in this list control.
In case if there are more items then visible area of list control can
display the scroll bar appears.
If user clicks on the scroll bar arrow, the OnTimer message handler
removes all items from list control and populate it again with new range
of visible items and then updates values as usually.
The problem I experience is that if user clicks fast enough on the
scroll bar arrow, the applications sometimes interpret it as double click
event in list control, which has undesirable effect for us.
The problem as I understand it, is that when OnTimer method removes all
items and repopulate list control the scroll bars disappear for the very
short time. This is not visible to user, the control just blinks, but user
thinks that he clicks on scroll bar arrows while he actually clicks inside
list control which is interpreted as double click in client area of list
control.
Can anyone suggest solution how I can overcome this problem?
Thanks
The OnTimer message handler updates values in this list control.
In case if there are more items then visible area of list control can
display the scroll bar appears.
If user clicks on the scroll bar arrow, the OnTimer message handler
removes all items from list control and populate it again with new range
of visible items and then updates values as usually.
The problem I experience is that if user clicks fast enough on the
scroll bar arrow, the applications sometimes interpret it as double click
event in list control, which has undesirable effect for us.
The problem as I understand it, is that when OnTimer method removes all
items and repopulate list control the scroll bars disappear for the very
short time. This is not visible to user, the control just blinks, but user
thinks that he clicks on scroll bar arrows while he actually clicks inside
list control which is interpreted as double click in client area of list
control.
Can anyone suggest solution how I can overcome this problem?
Thanks