i have two frames , how can i put one frame in the other and not open it in a new window ? something like tabs..
You should not be trying to 'stick a frame in a panel'! Panels go inside frames, not the other way around.
As Thomas Matthews said, if you want tabs, use wxNoteBook