git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10917
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
'''wxString %s() {
wxString text;
'''wxString %s() {
wxString text;
- int len = GetTextLength();
+ int len = GetTextLength()+1;
char* buff = text.GetWriteBuf(len+1);
SendMsg(%s, len, (long)buff);
char* buff = text.GetWriteBuf(len+1);
SendMsg(%s, len, (long)buff);
// Retrieve all the text in the document.
wxString wxStyledTextCtrl::GetText() {
wxString text;
// Retrieve all the text in the document.
wxString wxStyledTextCtrl::GetText() {
wxString text;
- int len = GetTextLength();
+ int len = GetTextLength()+1;
char* buff = text.GetWriteBuf(len+1);
SendMsg(2182, len, (long)buff);
char* buff = text.GetWriteBuf(len+1);
SendMsg(2182, len, (long)buff);
'''wxString %s() {
wxString text;
'''wxString %s() {
wxString text;
- int len = GetTextLength();
+ int len = GetTextLength()+1;
char* buff = text.GetWriteBuf(len+1);
SendMsg(%s, len, (long)buff);
char* buff = text.GetWriteBuf(len+1);
SendMsg(%s, len, (long)buff);
// Retrieve all the text in the document.
wxString wxStyledTextCtrl::GetText() {
wxString text;
// Retrieve all the text in the document.
wxString wxStyledTextCtrl::GetText() {
wxString text;
- int len = GetTextLength();
+ int len = GetTextLength()+1;
char* buff = text.GetWriteBuf(len+1);
SendMsg(2182, len, (long)buff);
char* buff = text.GetWriteBuf(len+1);
SendMsg(2182, len, (long)buff);