You could dynamically size the static if need be but it might be a better idea to go with a read-only edit control; that way the user can scroll the info into view. It also sidesteps the possibility that the control may be too big to fit within its parent's client area.
Generally for sizing text I might use:
Or something like that. Hope that is of some use, Garfield.
HDC hdc=GetDC(hwnd); //parent wnd will do
TCHAR chTxt=TEXT("The Text");
//get string dimensions
//resize static, where 'hwndStatic' is static cntrl wnd handle
//and 'Left' is top-left x-coord and 'Top' is top-left y-coord