Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - MFC's problems about coordinates
MFC's problems about coordinates
A rectangular area with the upper left corner of the screen as the origin obtained by GetWindowRect. The function called by pdc takes the area in the upper left corner of the button window as the origin, so the rectangular area in the upper left corner of the screen obtained by GetWindowRect must be converted into the coordinates of the button window first.