GetDlgItem(IDC_STATIC_EMPTY_PHONE)->GetWindowRect(&tempRect); //得到控件屏幕位置this->ScreenToClient(&tempRect); //转成相对窗口的位置,this是控件所在的窗口this->InvalidateRect(tempRect);