Removed control creation macros in lieu of a static function that does the same thing.