I don't know what you mean by "switch"? When you plug in a display in OSX it will span your desktop over to it, you can enable the other display to be the main one by dragging over the menu bar in the image of the two screens in the display preferences.
In Windows I'm not too sure but I remember right-clicking on the desktop and enabling "extend my desktop to external display" somewhere in there.