So I've subclassed wxRichTextCtrl (inherited from it) in order to be able to use it. What I need to do is get all the text (styles and all) that is stored within the wxRichTextCtrl as a single string.
The problem I'm having is that I don't seem to be able to do this. wxRichTextCtrl must have more than a hundred member functions, and I'm softed through a lot of it. I've tried using the buffer, but that didn't work. I read that it apparently isn't updated (for reasons beyond my comprehension) and the "solution" I tried wasn't a solution at all. So, I'm stuck in this boat without a paddle, and I am out of ideas...
Is there anyone that has used wxRichTextCtrl that can help? I don't want to write directly to a file because the contents of the control are part of a larger set of data.
@naraku9333
That seems to work. But it doesn't work when I call buf.LoadFile(in, wxRICHTEXT_TYPE_XML) interestingly enough, using that method seems to negate my solution... Now when I try to fill the buffer, it doesn't no matter what I do.