Is there an easier way to display the struct fields and their corresponding values in RichEdit control?
This is what I am doing now:
<
I suggest creating templated methods for writing to the text box:
template
void
Write_To_Textbox(const T& variable,
const std::string& variable_name,
TRichTextEdit & textbox)
{
//...
}
Then use some cut, copy, paste, and regular expression capable replacement editor functions and create an "annotate" function:
void
annotate(TRichTextEdit& textbox)
{
Write_To_Textbox(member1, "member1", textbox);
//...
}
Note: Check syntax of template functions, as I don't think I got it right in this example.