R
Rajko
How can I mesure string width in pixels?
I found : Graphics.MeasureString Method.
It is in System.Drawing namespace.
I need to use it in static library.
Well, class Graphics does not have any constructors (at least in my MSDN).
So, if I can't use System:rawing::Graphics::MeasureString in static lib,
and Graphics *g = new System:rawing::Graphics() does not work.
How can I call MeasureString Method?
Or if someone knows how to mesure lets say CString width in pixels.
Or auto size CStatic to it's content (runtime implementation).
Thanks, Rajko.
I found : Graphics.MeasureString Method.
It is in System.Drawing namespace.
I need to use it in static library.
Well, class Graphics does not have any constructors (at least in my MSDN).
So, if I can't use System:rawing::Graphics::MeasureString in static lib,
and Graphics *g = new System:rawing::Graphics() does not work.
How can I call MeasureString Method?
Or if someone knows how to mesure lets say CString width in pixels.
Or auto size CStatic to it's content (runtime implementation).
Thanks, Rajko.