I don't know almost anything about wxWidgets, but the editor must be a wxWidgets window.
I have checked the source and found cbeditor.h in the includes, and cbeditorprintout.h might help you, check the wxRect structures they prolly hold the size of the text editing window
There's also editorbase.h