I already tried that, this code makes the first movement right, but the last one that's supposed to take it back to the initial spot takes it to the top left corner of the dialog.
Code:
  RECT rc, rc2;
  POINT p;
  GetClientRect(hPic, &rc);
  GetWindowRect(hPic, &rc2);
  int width = rc.right - rc.left, height = rc.bottom - rc.top;
  p.x=rc2.left;
  p.y=rc2.top;
  ScreenToClient(hPic, &p);

if(something){
MoveWindow(hPic, rc.left+4, rc.top+4, width, height, 1);
}

else if(something{
MoveWindow(hPic, p.x, p.y, width, height, 1);
}