Visual C++ 10.0 |
23 Sep 2011
Updated: 23 Sep 2011
Rating: 4.00/5
Votes: 2
Popularity: 1.20
Licence: CPOL
Views: 11,920
Bookmarked: 4
Downloaded: 0
void CenterWnd(HWND wnd){ RECT r,r1; GetWindowRect(wnd,&r); GetWindowRect(GetDesktopWindow(),&r1); MoveWindow(wnd,((r1.right-r1.left)-(r.right-r.left))/2, ((r1.bottom-r1.top)-(r.bottom-r.top))/2, (r.right-r.left), (r.bottom-r.top),0);}
|