Subwindows should be created as children of frames. The panel subwindow may contain panel items (controls or widgets).
See also wxWindow.