how can i adjust the width and height of that static control to fit the text inside?
its just one line adjust in the width
Printable View
how can i adjust the width and height of that static control to fit the text inside?
its just one line adjust in the width
basicly i want to get the width of the text in my static control in pixels
http://msdn.microsoft.com/en-us/libr...09(VS.85).aspxCode:RECT r;
DrawText(....."Hello Width",&r,DT_CALCRECT);
int iWidth = r.right - r.left;
Best Wishes.
-David Delaune
thanks alot :thumb: