I tryed to do that as much as possible when first started but had problems One was that i cange the name in wxglade of the class feild and cuase an error on xrc load took me a while to track down.  (Dumb me).  Another was an oll dll (dumb me)  and there many others.  I Probbly should try again.  
Here a thought that came to me, i want to try latter what happen when you add a wxframe control to a wxNotebook?  I use wxpannel before on notebooks.  I think it only requiers wxwindow decendent but not sure.      
Here a little more info on my idea inspire buy my brother and mostly his idea for another program i was working on.  
We could have codeblocks load and mange theme wicth are xrc with a possible plugin to mannage the non-stander controls events and other stuff.
I not sure if you can mannage events of mainframe controls outside the Mainfuction thou a dll thou but think you could.
we could have make thing like editormanager have a SetEdtorList(wxTreeCtrl *EditorListCtrl) and SetCustumListCtrl(wxControl *) Methods to do this if it did not work. 
mandrav buy the way to answer you question a while back that was 
Did I understand you or not?
 Only partarly.  Yes I want mainframe TO BE XRC but you don't understand how i plan on implementing it.
mandrav If I get something work would you like it,  Now that I expplain it a little better or do you still think it will cuase problems?  I got to amit i never usesed (wxDockit/wxIFM) so i could be missing some facts