CRect rc; GetDlgItem(IDC_STATIC1)->GetWindowRect(&rc); int width=rc.width; 转载于:https://www.cnblogs.com/wangliang651/archive/2006/08/15/477641.html