コード例 #1
0
        /// <summary>
        /// 绘制函数.
        /// </summary>
        private void DrawFun(Int32 lRealHandle, IntPtr hDc, int dwUser)
        {
            DeviceConfigPanel.tagRECT rect = new DeviceConfigPanel.tagRECT();
            rect.left = rc.X;
            rect.top = rc.Y;
            rect.right = rc.X + rc.Width;
            rect.bottom = rc.Y + rc.Height;
            DeviceConfigPanel.DrawEdge(hDc, ref rect, 2, 15);

            DeviceConfigPanel.SetBkMode(hDc, 1);
        }
コード例 #2
0
 /// <summary>
 /// 绘制函数.
 /// </summary>
 private void DrawFun(Int32 lRealHandle, IntPtr hDc, int dwUser)
 {
     foreach (Rectangle r in rc)
     {
         if(r != new Rectangle(0, 0, 0, 0))
         {
             DeviceConfigPanel.tagRECT rect = new DeviceConfigPanel.tagRECT();
             rect.left = r.X;
             rect.top = r.Y;
             rect.right = r.X+r.Width;
             rect.bottom = r.Y+r.Height;
             DeviceConfigPanel.DrawEdge(hDc, ref rect, 2, 15);
         }
     }
     DeviceConfigPanel.SetBkMode(hDc, 1);
 }
コード例 #3
0
        /// <summary>
        /// 绘制函数.
        /// </summary>
        private void DrawFun(Int32 lRealHandle, IntPtr hDc, int dwUser)
        {
            for (int i = 0; i < 18; i++)
            {
                for (int j = 0; j < 22; j++)
                {
                    if (motionScope[i * 22 + j] == 1)
                    {
                        DeviceConfigPanel.tagRECT rect = new DeviceConfigPanel.tagRECT();
                        rect.left = j*widthStep;
                        rect.top = i*heightStep;
                        rect.right = j*widthStep + widthStep;
                        rect.bottom = i * heightStep + heightStep;
                        DeviceConfigPanel.DrawEdge(hDc, ref rect, 2, 15);
                    }
                }
            }

            DeviceConfigPanel.SetBkMode(hDc, 1);
        }