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:
Code:
HDC hdc=GetDC(hwnd); //parent wnd will do
TCHAR chTxt[]=TEXT("The Text");
SIZE sz;
//get string dimensions
GetTextExtentPoint32(hdc,chTxt,lstrlen(chTxt),&sz);
//liberate dc
ReleaseDC(hwnd,hdc);
//resize static, where 'hwndStatic' is static cntrl wnd handle
//and 'Left' is top-left x-coord and 'Top' is top-left y-coord
MoveWindow(hwndStatic,Left,Top,sz.cx,sz.cy+4,1);
Or something like that. Hope that is of some use, Garfield.