Call the MoveWindow method of the base class of your CGButton instead.