I am not sure this what you are doing but I use the following to clear the fox header of the toolbars. In foxpro the toolbars are treated as windows. This is a few but add the rest of the toolbar names to catch them all:
IF WVISIBLE("Form Designer")
HIDE WINDOW "Form Designer"
ENDIF
IF WVISIBLE("COMMAND")
HIDE WINDOW "COMMAND"
ENDIF
IF WVISIBLE("Standard")
HIDE WINDOW "Standard"
ENDIF
Good luck, Chuck
Extreme Programming = Plan -> Design -> Code -> Test