Khomy Prime #1 untested but i'm sure it's right. Local width,height,Rect[4] GetClientRect hwnd,Rect width=Rect[2]-Rect[0] height=Rect[3]-Rect[1]