• Wed. Sep 28th, 2022

    How to control the bitmap in MFC, such as Chinese chess


    Sep 23, 2022
    2 thoughts on “How to control the bitmap in MFC, such as Chinese chess”
    1. I have seen it. He was not done by the picture. He uses the principle of filling in the picture. One picture is added to another picture. For example, a chessboard is a picture, and then the horse is a picture. In this case, Ma Tian is on the chessboard. The content, if you want to move the horse, then remove the horse's picture first, and then add the horse to another place and he moves.

      The finishing:
      1. Make a checkerboard map for map
      2. Make a chess piece
      3. Cover the chess pieces on the chessboard.
      4. It is only necessary to remove the original chess piece and add it to the new seat again.

      The landlord has an example of "MFC Game Programming".

    2. Set x, y coordinates, the same drawing, but the original position should be cleared when painting, of course, the order of the painting is of course drawing a chessboard and then drawing a chess piece.

    Leave a Reply