MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / EditSelectEx

Function EditSelectEx

src/Edit.c:4145–4159  ·  view source on GitHub ↗

============================================================================= EditSelectEx()

Source from the content-addressed store, hash-verified

4143// EditSelectEx()
4144//
4145void EditSelectEx ( HWND hwnd, int iAnchorPos, int iCurrentPos )
4146{
4147 SendMessage ( hwnd, SCI_SETXCARETPOLICY, CARET_SLOP | CARET_STRICT | CARET_EVEN, 50 );
4148#if 0
4149 SendMessage ( hwnd, SCI_SETYCARETPOLICY, CARET_SLOP | CARET_STRICT | CARET_EVEN, 5 );
4150#else
4151 {
4152 int lines = SendMessage(hwnd, SCI_LINESONSCREEN, 0, 0);
4153 SendMessage(hwnd, SCI_SETYCARETPOLICY, CARET_SLOP | CARET_STRICT | CARET_EVEN, lines / 3);
4154 }
4155#endif
4156 SendMessage ( hwnd, SCI_SETSEL, iAnchorPos, iCurrentPos );
4157 SendMessage ( hwnd, SCI_SETXCARETPOLICY, CARET_SLOP | CARET_EVEN, 50 );
4158 SendMessage ( hwnd, SCI_SETYCARETPOLICY, CARET_EVEN, 0 );
4159}
4160
4161
4162//=============================================================================

Callers 6

EditFindNextFunction · 0.85
EditFindPrevFunction · 0.85
HL_Find_next_wordFunction · 0.85
EditReplaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected