//设置光标 private void GoldControl_MouseMove(object sender, MouseEventArgs e) { //获取鼠标 Point point = e.Location; //设置光标 int nHeadWidth = LEFT_WIDTH; int nViewCellCount = (m_nCellCount - 1) / 3 + m_nCellCount; if ((point.Y > 5) && (point.Y < 65) && (point.X > nHeadWidth) && (point.X < (CELL_WIDTH * nViewCellCount + nHeadWidth))) { int iCellPos = (m_nCellCount - (point.X - nHeadWidth) / CELL_WIDTH); if ((iCellPos != 3) && (iCellPos != 7)) { this.Cursor = GameGraphics.LoadCursorFromResource(Properties.Resources.CARD_CUR); } } }