Пример #1
0
 /// <summary>
 /// The protected OnVScroll method raises the event by invoking
 /// the delegates. The sender is always this, the current instance
 /// of the class.
 /// </summary>
 protected virtual void OnVScroll(ListViewScrollEventArgs e)
 {
     if (OnScroll != null)
     {
         OnScroll(this, e);
     }
 }
Пример #2
0
 /// <summary>
 /// The protected OnVScroll method raises the event by invoking
 /// the delegates. The sender is always this, the current instance
 /// of the class.
 /// </summary>        
 protected virtual void OnVScroll(ListViewScrollEventArgs e)
 {
     if (OnScroll != null)
     {
         OnScroll(this, e);
     }
 }
Пример #3
0
 protected override void WndProc(ref Message m)
 {
     base.WndProc(ref m);
     if (m.Msg == 0x115)//fire event on wm_vscroll
     {
         ListViewScrollEventArgs e = new ListViewScrollEventArgs();
         this.OnVScroll(e);
     }
 }
Пример #4
0
 protected override void WndProc(ref Message m)
 {
     base.WndProc(ref m);
     if (m.Msg == 0x115)//fire event on wm_vscroll
     {
         ListViewScrollEventArgs e = new ListViewScrollEventArgs();
         this.OnVScroll(e);
     }
 }
Пример #5
0
 public static void AddListViewScrollEvent(ListView listView, ListViewScrollEventArgs action)
 {
     ScrollItems[listView] = action;
 }