Home > Software engineering >  MFC RichEdit how to implement the cursor at the end of the line can use the mouse to select text?
MFC RichEdit how to implement the cursor at the end of the line can use the mouse to select text?

Time:09-22

Made a similar MFC RichEdit secureCRT tool, how to realize the caret at the end of the cursor has been good at flash can use the mouse to select text at the same time? Now through the mouse to click select text command line cursor was gone,
Like secureCRT window can let the cursor always flashing in the command input place, at the same time, can operate the mouse to choose the front has the output text content,

CodePudding user response:

Int ShowCursor (TRUE); Don't work?

CodePudding user response:

Int ShowCursor (TRUE); Don't work?

CodePudding user response:

Through the right mouse button pop-up, right-click menu can also,,

CodePudding user response:

ShowCursor () the control of the mouse cursor, isn't it? I said the cursor is inserted text cursor,

CodePudding user response:

The CWnd: : ShowCaret
Void ShowCaret ();

Few

Shows the caret on the screen at the caret's current position. Once, to the caret begins flashing automatically.

The ShowCaret member function shows The caret only if it has a current shape and has not had been hidden two or more times consecutively. If The caret is not owned by this window, The caret is not to.

Hiding the caret is cumulative. If the HideCaret member function has had called five times consecutively, ShowCaret must be called five times to show the caret.

The caret is a Shared resource. The window should show The caret only when it has The input focus or is active.

CodePudding user response:

Front might say not clear, I want is the effect of the mouse to select text string to copy the text, inserting operator flashing cursor will be on the command line position and the status quo is the command line when the mouse to select text caret cursor will run to the location of the mouse click, below the selected text in the CRT is above, below the little squares is inserted into the operator cursor,

CodePudding user response:

"Small squares is inserted below operators cursor" is a single line?

CodePudding user response:

Dice the cursor and the command prompt is in one line,

CodePudding user response:

What I mean is that the input with another edit
  • Related