+// Find the parent line of a child line.
+int wxStyledTextCtrl::GetFoldParent(int line) const
+{
+ return SendMsg(2225, line, 0);
+}
+
+// Make a range of lines visible.
+void wxStyledTextCtrl::ShowLines(int lineStart, int lineEnd)
+{
+ SendMsg(2226, lineStart, lineEnd);
+}
+
+// Make a range of lines invisible.
+void wxStyledTextCtrl::HideLines(int lineStart, int lineEnd)
+{
+ SendMsg(2227, lineStart, lineEnd);
+}
+
+// Is a line visible?
+bool wxStyledTextCtrl::GetLineVisible(int line) const
+{
+ return SendMsg(2228, line, 0) != 0;
+}
+
+// Show the children of a header line.
+void wxStyledTextCtrl::SetFoldExpanded(int line, bool expanded)
+{
+ SendMsg(2229, line, expanded);
+}
+
+// Is a header line expanded?
+bool wxStyledTextCtrl::GetFoldExpanded(int line) const
+{
+ return SendMsg(2230, line, 0) != 0;
+}
+
+// Switch a header line between expanded and contracted.
+void wxStyledTextCtrl::ToggleFold(int line)
+{
+ SendMsg(2231, line, 0);
+}
+
+// Ensure a particular line is visible by expanding any header line hiding it.
+void wxStyledTextCtrl::EnsureVisible(int line)
+{
+ SendMsg(2232, line, 0);
+}
+
+// Set some style options for folding.
+void wxStyledTextCtrl::SetFoldFlags(int flags)
+{
+ SendMsg(2233, flags, 0);
+}
+
+// Ensure a particular line is visible by expanding any header line hiding it.
+// Use the currently set visibility policy to determine which range to display.
+void wxStyledTextCtrl::EnsureVisibleEnforcePolicy(int line)
+{
+ SendMsg(2234, line, 0);
+}
+
+// Sets whether a tab pressed when caret is within indentation indents.
+void wxStyledTextCtrl::SetTabIndents(bool tabIndents)
+{
+ SendMsg(2260, tabIndents, 0);
+}
+
+// Does a tab pressed when caret is within indentation indent?
+bool wxStyledTextCtrl::GetTabIndents() const
+{
+ return SendMsg(2261, 0, 0) != 0;
+}
+
+// Sets whether a backspace pressed when caret is within indentation unindents.
+void wxStyledTextCtrl::SetBackSpaceUnIndents(bool bsUnIndents)
+{
+ SendMsg(2262, bsUnIndents, 0);
+}
+
+// Does a backspace pressed when caret is within indentation unindent?
+bool wxStyledTextCtrl::GetBackSpaceUnIndents() const
+{
+ return SendMsg(2263, 0, 0) != 0;
+}
+
+// Sets the time the mouse must sit still to generate a mouse dwell event.
+void wxStyledTextCtrl::SetMouseDwellTime(int periodMilliseconds)
+{
+ SendMsg(2264, periodMilliseconds, 0);
+}
+
+// Retrieve the time the mouse must sit still to generate a mouse dwell event.
+int wxStyledTextCtrl::GetMouseDwellTime() const
+{
+ return SendMsg(2265, 0, 0);
+}
+
+// Get position of start of word.
+int wxStyledTextCtrl::WordStartPosition(int pos, bool onlyWordCharacters)
+{
+ return SendMsg(2266, pos, onlyWordCharacters);
+}
+
+// Get position of end of word.
+int wxStyledTextCtrl::WordEndPosition(int pos, bool onlyWordCharacters)
+{
+ return SendMsg(2267, pos, onlyWordCharacters);
+}
+
+// Sets whether text is word wrapped.
+void wxStyledTextCtrl::SetWrapMode(int mode)
+{
+ SendMsg(2268, mode, 0);
+}
+
+// Retrieve whether text is word wrapped.
+int wxStyledTextCtrl::GetWrapMode() const
+{
+ return SendMsg(2269, 0, 0);
+}
+
+// Set the display mode of visual flags for wrapped lines.
+void wxStyledTextCtrl::SetWrapVisualFlags(int wrapVisualFlags)
+{
+ SendMsg(2460, wrapVisualFlags, 0);
+}
+
+// Retrive the display mode of visual flags for wrapped lines.
+int wxStyledTextCtrl::GetWrapVisualFlags() const
+{
+ return SendMsg(2461, 0, 0);
+}
+
+// Set the location of visual flags for wrapped lines.
+void wxStyledTextCtrl::SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation)
+{
+ SendMsg(2462, wrapVisualFlagsLocation, 0);
+}
+
+// Retrive the location of visual flags for wrapped lines.
+int wxStyledTextCtrl::GetWrapVisualFlagsLocation() const
+{
+ return SendMsg(2463, 0, 0);
+}
+
+// Set the start indent for wrapped lines.
+void wxStyledTextCtrl::SetWrapStartIndent(int indent)
+{
+ SendMsg(2464, indent, 0);
+}
+
+// Retrive the start indent for wrapped lines.
+int wxStyledTextCtrl::GetWrapStartIndent() const
+{
+ return SendMsg(2465, 0, 0);
+}
+
+// Sets the degree of caching of layout information.
+void wxStyledTextCtrl::SetLayoutCache(int mode)
+{
+ SendMsg(2272, mode, 0);
+}
+
+// Retrieve the degree of caching of layout information.
+int wxStyledTextCtrl::GetLayoutCache() const
+{
+ return SendMsg(2273, 0, 0);
+}
+
+// Sets the document width assumed for scrolling.
+void wxStyledTextCtrl::SetScrollWidth(int pixelWidth)
+{
+ SendMsg(2274, pixelWidth, 0);
+}
+
+// Retrieve the document width assumed for scrolling.
+int wxStyledTextCtrl::GetScrollWidth() const
+{
+ return SendMsg(2275, 0, 0);
+}
+
+// Sets whether the maximum width line displayed is used to set scroll width.
+void wxStyledTextCtrl::SetScrollWidthTracking(bool tracking)
+{
+ SendMsg(2516, tracking, 0);
+}
+
+// Retrieve whether the scroll width tracks wide lines.
+bool wxStyledTextCtrl::GetScrollWidthTracking() const
+{
+ return SendMsg(2517, 0, 0) != 0;
+}
+
+// Measure the pixel width of some text in a particular style.
+// NUL terminated text argument.
+// Does not handle tab or control characters.
+int wxStyledTextCtrl::TextWidth(int style, const wxString& text)
+{
+ return SendMsg(2276, style, (sptr_t)(const char*)wx2stc(text));
+}
+
+// Sets the scroll range so that maximum scroll position has
+// the last line at the bottom of the view (default).
+// Setting this to false allows scrolling one page below the last line.
+void wxStyledTextCtrl::SetEndAtLastLine(bool endAtLastLine)
+{
+ SendMsg(2277, endAtLastLine, 0);
+}
+
+// Retrieve whether the maximum scroll position has the last
+// line at the bottom of the view.
+bool wxStyledTextCtrl::GetEndAtLastLine() const
+{
+ return SendMsg(2278, 0, 0) != 0;
+}
+
+// Retrieve the height of a particular line of text in pixels.
+int wxStyledTextCtrl::TextHeight(int line)
+{
+ return SendMsg(2279, line, 0);
+}
+
+// Show or hide the vertical scroll bar.
+void wxStyledTextCtrl::SetUseVerticalScrollBar(bool show)
+{
+ SendMsg(2280, show, 0);
+}
+
+// Is the vertical scroll bar visible?
+bool wxStyledTextCtrl::GetUseVerticalScrollBar() const
+{
+ return SendMsg(2281, 0, 0) != 0;
+}
+
+// Append a string to the end of the document without changing the selection.
+void wxStyledTextCtrl::AppendText(const wxString& text) {
+ wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
+ SendMsg(2282, strlen(buf), (sptr_t)(const char*)buf);
+}
+
+// Is drawing done in two phases with backgrounds drawn before foregrounds?
+bool wxStyledTextCtrl::GetTwoPhaseDraw() const
+{
+ return SendMsg(2283, 0, 0) != 0;
+}
+
+// In twoPhaseDraw mode, drawing is performed in two phases, first the background
+// and then the foreground. This avoids chopping off characters that overlap the next run.
+void wxStyledTextCtrl::SetTwoPhaseDraw(bool twoPhase)
+{
+ SendMsg(2284, twoPhase, 0);
+}
+
+// Make the target range start and end be the same as the selection range start and end.
+void wxStyledTextCtrl::TargetFromSelection()
+{
+ SendMsg(2287, 0, 0);
+}
+
+// Join the lines in the target.
+void wxStyledTextCtrl::LinesJoin()
+{
+ SendMsg(2288, 0, 0);
+}
+
+// Split the lines in the target into lines that are less wide than pixelWidth
+// where possible.
+void wxStyledTextCtrl::LinesSplit(int pixelWidth)
+{
+ SendMsg(2289, pixelWidth, 0);
+}
+
+// Set the colours used as a chequerboard pattern in the fold margin
+void wxStyledTextCtrl::SetFoldMarginColour(bool useSetting, const wxColour& back)
+{
+ SendMsg(2290, useSetting, wxColourAsLong(back));
+}
+void wxStyledTextCtrl::SetFoldMarginHiColour(bool useSetting, const wxColour& fore)
+{
+ SendMsg(2291, useSetting, wxColourAsLong(fore));
+}
+
+// Move caret down one line.
+void wxStyledTextCtrl::LineDown()
+{
+ SendMsg(2300, 0, 0);
+}
+
+// Move caret down one line extending selection to new caret position.
+void wxStyledTextCtrl::LineDownExtend()
+{
+ SendMsg(2301, 0, 0);
+}
+
+// Move caret up one line.
+void wxStyledTextCtrl::LineUp()
+{
+ SendMsg(2302, 0, 0);
+}
+
+// Move caret up one line extending selection to new caret position.
+void wxStyledTextCtrl::LineUpExtend()
+{
+ SendMsg(2303, 0, 0);
+}
+
+// Move caret left one character.
+void wxStyledTextCtrl::CharLeft()
+{
+ SendMsg(2304, 0, 0);
+}
+
+// Move caret left one character extending selection to new caret position.
+void wxStyledTextCtrl::CharLeftExtend()
+{
+ SendMsg(2305, 0, 0);
+}
+
+// Move caret right one character.
+void wxStyledTextCtrl::CharRight()
+{
+ SendMsg(2306, 0, 0);
+}
+
+// Move caret right one character extending selection to new caret position.
+void wxStyledTextCtrl::CharRightExtend()
+{
+ SendMsg(2307, 0, 0);
+}
+
+// Move caret left one word.
+void wxStyledTextCtrl::WordLeft()
+{
+ SendMsg(2308, 0, 0);
+}
+
+// Move caret left one word extending selection to new caret position.
+void wxStyledTextCtrl::WordLeftExtend()
+{
+ SendMsg(2309, 0, 0);
+}
+
+// Move caret right one word.
+void wxStyledTextCtrl::WordRight()
+{
+ SendMsg(2310, 0, 0);
+}
+
+// Move caret right one word extending selection to new caret position.
+void wxStyledTextCtrl::WordRightExtend()
+{
+ SendMsg(2311, 0, 0);
+}
+
+// Move caret to first position on line.
+void wxStyledTextCtrl::Home()
+{
+ SendMsg(2312, 0, 0);
+}
+
+// Move caret to first position on line extending selection to new caret position.
+void wxStyledTextCtrl::HomeExtend()
+{
+ SendMsg(2313, 0, 0);
+}
+
+// Move caret to last position on line.
+void wxStyledTextCtrl::LineEnd()
+{
+ SendMsg(2314, 0, 0);
+}
+
+// Move caret to last position on line extending selection to new caret position.
+void wxStyledTextCtrl::LineEndExtend()
+{
+ SendMsg(2315, 0, 0);
+}