得到控件在窗口的位置

 

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

 

posted @ 2010-10-28 11:19  奥雷连诺  阅读(304)  评论(0编辑  收藏  举报