Exemplo n.º 1
0
        private void shtViewWnd_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            double dRate = 1.25;

            if (e.Delta > 0)
            {
                dRate = 1 / dRate;
            }

            m_shtViewPort.ZoomViewPort(dRate, e.X, e.Y);
            Invalidate();
        }