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
Asked
Active
Viewed 53 times
0
-
2`GetClientRect` should do it for the dialog window as a whole. – Mark Ransom Jan 31 '22 at 04:51
1 Answers
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