Alien-wxWidgets
view release on metacpan or search on metacpan
patches/wxMSW-2.8.10-w64-stc.patch view on Meta::CPAN
+++ contrib/src/stc/stc.cpp (copia locale)
@@ -194,7 +194,7 @@
//----------------------------------------------------------------------
-long wxStyledTextCtrl::SendMsg(int msg, long wp, long lp) {
+wxIntPtr wxStyledTextCtrl::SendMsg(int msg, wxUIntPtr wp, wxIntPtr lp) {
return m_swx->WndProc(msg, wp, lp);
}
@@ -229,17 +229,17 @@
// Add text to the document at current position.
void wxStyledTextCtrl::AddText(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- SendMsg(2001, strlen(buf), (long)(const char*)buf);
+ SendMsg(2001, strlen(buf), (sptr_t)(const char*)buf);
}
// Add array of cells to document.
void wxStyledTextCtrl::AddStyledText(const wxMemoryBuffer& data) {
- SendMsg(2002, data.GetDataLen(), (long)data.GetData());
+ SendMsg(2002, data.GetDataLen(), (sptr_t)data.GetData());
}
// Insert string at a position.
void wxStyledTextCtrl::InsertText(int pos, const wxString& text) {
- SendMsg(2003, pos, (long)(const char*)wx2stc(text));
+ SendMsg(2003, pos, (wxIntPtr)(const char*)wx2stc(text));
}
// Delete all text in the document.
@@ -313,7 +313,7 @@
tr.lpstrText = (char*)buf.GetWriteBuf(len*2+1);
tr.chrg.cpMin = startPos;
tr.chrg.cpMax = endPos;
- len = SendMsg(2015, 0, (long)&tr);
+ len = SendMsg(2015, 0, (sptr_t)&tr);
buf.UngetWriteBuf(len);
return buf;
}
@@ -388,7 +388,7 @@
wxMemoryBuffer mbuf(len+1);
char* buf = (char*)mbuf.GetWriteBuf(len+1);
- int pos = SendMsg(2027, len+1, (long)buf);
+ int pos = SendMsg(2027, len+1, (sptr_t)buf);
mbuf.UngetWriteBuf(len);
mbuf.AppendByte(0);
if (linePos) *linePos = pos;
@@ -525,7 +525,7 @@
char* buff = new char[len+1];
strm.CopyTo(buff, len);
buff[len] = 0;
- SendMsg(2049, markerNumber, (long)buff);
+ SendMsg(2049, markerNumber, (sptr_t)buff);
delete [] buff;
}
@@ -612,7 +612,7 @@
// Set the font of a style.
void wxStyledTextCtrl::StyleSetFaceName(int style, const wxString& fontName) {
- SendMsg(2056, style, (long)(const char*)wx2stc(fontName));
+ SendMsg(2056, style, (wxIntPtr)(const char*)wx2stc(fontName));
}
// Set a style to have its end of line filled or not.
@@ -682,7 +682,7 @@
// Set the styles for a segment of the document.
void wxStyledTextCtrl::SetStyleBytes(int length, char* styleBytes) {
- SendMsg(2073, length, (long)styleBytes);
+ SendMsg(2073, length, (sptr_t)styleBytes);
}
// Set a style to be visible or not.
@@ -703,7 +703,7 @@
// Set the set of characters making up words for when moving or selecting by word.
// First sets deaults like SetCharsDefault.
void wxStyledTextCtrl::SetWordChars(const wxString& characters) {
- SendMsg(2077, 0, (long)(const char*)wx2stc(characters));
+ SendMsg(2077, 0, (wxIntPtr)(const char*)wx2stc(characters));
}
// Start a sequence of actions that is undone and redone as a unit.
@@ -806,7 +806,7 @@
// The lenEntered parameter indicates how many characters before
// the caret should be used to provide context.
void wxStyledTextCtrl::AutoCompShow(int lenEntered, const wxString& itemList) {
- SendMsg(2100, lenEntered, (long)(const char*)wx2stc(itemList));
+ SendMsg(2100, lenEntered, (wxIntPtr)(const char*)wx2stc(itemList));
}
// Remove the auto-completion list from the screen.
@@ -831,7 +831,7 @@
// Define a set of character that when typed cancel the auto-completion list.
void wxStyledTextCtrl::AutoCompStops(const wxString& characterSet) {
- SendMsg(2105, 0, (long)(const char*)wx2stc(characterSet));
+ SendMsg(2105, 0, (wxIntPtr)(const char*)wx2stc(characterSet));
}
// Change the separator character in the string setting up an auto-completion list.
@@ -847,7 +847,7 @@
// Select the item in the auto-completion list that starts with a string.
void wxStyledTextCtrl::AutoCompSelect(const wxString& text) {
- SendMsg(2108, 0, (long)(const char*)wx2stc(text));
+ SendMsg(2108, 0, (wxIntPtr)(const char*)wx2stc(text));
}
// Should the auto-completion list be cancelled if the user backspaces to a
@@ -864,7 +864,7 @@
// Define a set of characters that when typed will cause the autocompletion to
// choose the selected item.
void wxStyledTextCtrl::AutoCompSetFillUps(const wxString& characterSet) {
- SendMsg(2112, 0, (long)(const char*)wx2stc(characterSet));
+ SendMsg(2112, 0, (wxIntPtr)(const char*)wx2stc(characterSet));
}
// Should a single item auto-completion list automatically choose the item.
@@ -889,7 +889,7 @@
// Display a list of strings and send notification when user chooses one.
( run in 0.624 second using v1.01-cache-2.11-cpan-5735350b133 )