For some reason,
people think too hard.
If you want to create
a fullscreen window that covers the taskbar, just create a fullscreen
window and the taskbar will automatically get out of the way.
Don't go around hunting for the taskbar and poking it; let it do its thing.
As always, start with
the scratch program and add the following:
...