]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/stc/gen_iface.py
some tweaks for LINK_LEXERS
[wxWidgets.git] / contrib / src / stc / gen_iface.py
index 18b28cbdd395a640210125e7e0d0e3abff2cacdf..3da52f8420ddf9b87657e49f3f37db9ab3d32fb4 100644 (file)
@@ -254,7 +254,8 @@ methodOverrideMap = {
                      TextToFind  ft;
                      ft.chrg.cpMin = minPos;
                      ft.chrg.cpMax = maxPos;
-                     ft.lpstrText = (char*)(const char*)wx2stc(text);
+                     wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
+                     ft.lpstrText = (char*)(const char*)buf;
 
                      return SendMsg(%s, flags, (long)&ft);''',
                   0),
@@ -487,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,