============================================================================= EditSelectEx()
| 4143 | // EditSelectEx() |
| 4144 | // |
| 4145 | void 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 | //============================================================================= |
no outgoing calls
no test coverage detected