elanhickler

Untitled

Dec 23rd, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void WinControl::setCenterPosition(int x, int y) {
  2. if (m_hwnd != NULL)
  3. {
  4. int w = getWidth()/2;
  5. int h = getHeight()/2;
  6.  
  7. setTopLeftPosition(x-w, y-h);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment