I am trying to create a method which gives me width of the string in pixels. My code is still there:
inline zero getTextWidth (hwnd hwnd four * text) {size text size; GetTextExtentPoint32 (GetDC (HWD), Text, Stellen (Text, and Text Size); Return?; } I know that I should use LPtoDP (), but the parameters should be numerically and the size of GetTextExtentPoint32 returns is not. How can I convert it?
size in both the height and width in the structure since you only care about breadth You are, of course, LPtoDP (textSize.cx); .
No comments:
Post a Comment