[xstatusbar] changed code to use nullptr & auto. changed errors to exceptions
[xstatusbar]
changed code to use nullptr & auto.
changed errors to exceptions

twig/dcxdll,twig/dcxdll,twig/dcxdll,twig/dcxdll,twig/dcxdll