From 6b2cf8c9e17dfc59a1b3e8b18f1b06eae9344bf8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 8 Aug 2002 19:11:07 +0000 Subject: [PATCH] Fixes for Bug #592758 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/stc/gen_iface.py | 4 ++-- contrib/src/stc/stc.cpp | 4 ++-- src/stc/gen_iface.py | 4 ++-- src/stc/stc.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contrib/src/stc/gen_iface.py b/contrib/src/stc/gen_iface.py index 95c039f7a6..3da52f8420 100644 --- a/contrib/src/stc/gen_iface.py +++ b/contrib/src/stc/gen_iface.py @@ -488,13 +488,13 @@ methodOverrideMap = { 'AddRefDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'ReleaseDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'SetCodePage' : (0, 0, diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index e44ed9856f..1a8aca13cc 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -1565,12 +1565,12 @@ void* wxStyledTextCtrl::CreateDocument() { // Extend life of document. void wxStyledTextCtrl::AddRefDocument(void* docPointer) { - SendMsg(2376, (long)docPointer); + SendMsg(2376, 0, (long)docPointer); } // Release a reference to the document, deleting document if it fades to black. void wxStyledTextCtrl::ReleaseDocument(void* docPointer) { - SendMsg(2377, (long)docPointer); + SendMsg(2377, 0, (long)docPointer); } // Get which document modification events are sent to the container. diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 95c039f7a6..3da52f8420 100644 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -488,13 +488,13 @@ methodOverrideMap = { 'AddRefDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'ReleaseDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'SetCodePage' : (0, 0, diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index e44ed9856f..1a8aca13cc 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -1565,12 +1565,12 @@ void* wxStyledTextCtrl::CreateDocument() { // Extend life of document. void wxStyledTextCtrl::AddRefDocument(void* docPointer) { - SendMsg(2376, (long)docPointer); + SendMsg(2376, 0, (long)docPointer); } // Release a reference to the document, deleting document if it fades to black. void wxStyledTextCtrl::ReleaseDocument(void* docPointer) { - SendMsg(2377, (long)docPointer); + SendMsg(2377, 0, (long)docPointer); } // Get which document modification events are sent to the container. -- 2.45.2