0

Good day, I am trying to add a bitmap image to my dialogue-based application using MFC ( VSTUDIO 2019 ). I wish to position my image at the center of the application. How do I get the size of the current rectangle so that it can be given as an input to BitBlt() function? Thanks in advance

sergiol
  • 4,122
  • 4
  • 47
  • 81
Justin M
  • 29
  • 3

1 Answers1

1

As mentioned in the comments, you can use GetClientRect to get the dimensions use refer to. My answer here provides some additonal information about GetClientRect and the other variants.

Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164