Introduction - If you have any usage issues, please Google them yourself
Design rule: Suppose there is a string ABCDE , each press any key (in response to WM_KEYDOWN message), the string to move forward a grid, when the first character string hit the user area of the window Boundary, the string moves in the opposite direction. As each string moves, the color will change randomly.
Note: If the initial state setting string is in the (100,100) position, and the A character starts to move to the left as the first character, the new position becomes (100+ Δx, 100), and Δx -10. Displays the entire string. When the coordinate position of the first character is less than 0, Δx + 10, and the character string moves to the right. Description Px and Py are two static global variables used to record the coordinates of the current position of the string, Plen record the length of the string. The API functions used can refer to job one and job two.