How to get the circumferential area of ​​text drawn in HDC in C ++?

I am trying to figure out the end point of text drawn on HDC. For this, I use DrawTextEx , which gives me a rectangle with a closure. Is there a way to get where the last character of the text will be drawn? For example: -

Text with enclosing rectangl In the case of the above image, I am trying to get the location ".". (which is the last character). Is there some mechanism by which I can do this?

+3


source to share





All Articles