ShowWindowCommandsOnTop for window buttons

Hide Window button commands when ShowWindowCommandsOnTop is false.

Fixes #966
Obsolete #967