Debug the code you are using for child frame toolbars and compare its behaviour with the one used for mainframe toolbars.
Note that by design toolbars consider to belong to the mainframe window!