Moved several windows control functions from misc library into new wincontrol library.