Hello u guys!

Do u know how to calc exactly length in pixel unit of any given string? I tried to use GetCharWidth and GetTextMetrics but can not get exactly length of string.