Full screen & Task Bar

Hi All,
I use ChangeDisplaySetting(&dm,CDS_FULLSCREEN); to change resolution of
screen and sometimes after I had changed  a resolution  from low to high

I get Task Bar. How to avoid such situation?
Any comments please,
With the best regads,
Vladimir