Changeset 1860 for trunk/src/user32/edit.cpp
- Timestamp:
- Nov 27, 1999, 3:16:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r1849 r1860 1 /* $Id: edit.cpp,v 1.1 8 1999-11-26 17:06:06cbratschi Exp $ */1 /* $Id: edit.cpp,v 1.19 1999-11-27 14:16:34 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 20 20 21 21 /* CB: todo 22 - WM_MOUSEMOVE: vert lines invalidate bug23 22 - EN_UPDATE: send before update 24 23 - EN_CHANGE: send after update -> WM_PAINT isn't the right place … … 38 37 39 38 #define BUFLIMIT_MULTI 65534 /* maximum buffer size (not including '\0') 40 FIXME: BTW, newspecs say 65535 (do you dare ???) */39 FIXME: BTW, Win95 specs say 65535 (do you dare ???) */ 41 40 #define BUFLIMIT_SINGLE 32766 /* maximum buffer size (not including '\0') */ 42 41 #define BUFSTART_MULTI 1024 /* starting size */ … … 1018 1017 { 1019 1018 INT line_index = EDIT_EM_LineIndex(hwnd, es, line); 1020 //CB: fix 1019 1021 1020 if (es->style & ES_MULTILINE) 1022 1021 rc->top = es->format_rect.top + (line - es->y_offset) * es->line_height; … … 1025 1024 rc->bottom = rc->top + es->line_height; 1026 1025 rc->left = (scol == 0) ? es->format_rect.left : SLOWORD(EDIT_EM_PosFromChar(hwnd, es, line_index + scol, TRUE)); 1027 rc->right = (ecol == -1) ? es->format_rect.right : SLOWORD(EDIT_EM_PosFromChar(hwnd, es, line_index + ecol, TRUE)) ;1026 rc->right = (ecol == -1) ? es->format_rect.right : SLOWORD(EDIT_EM_PosFromChar(hwnd, es, line_index + ecol, TRUE))+1; 1028 1027 } 1029 1028 … … 1091 1090 1092 1091 EDIT_GetLineRect(hwnd, es, 0, start, end, &line_rect); 1092 1093 //CB: fix 1 pixel vertical line bug 1094 line_rect.left--; 1095 line_rect.right++; 1096 1093 1097 if (IntersectRect(&rc, &line_rect, &es->format_rect)) 1094 1098 { … … 1139 1143 if (sl == el) { 1140 1144 EDIT_GetLineRect(hwnd, es, sl, sc, ec, &rcLine); 1145 1146 //CB: fix 1 pixel vertical line bug 1147 rcLine.left--; 1148 rcLine.right++; 1149 1150 1141 1151 if (IntersectRect(&rcUpdate, &rcWnd, &rcLine)) 1142 1152 InvalidateRect(hwnd, &rcUpdate, FALSE); … … 2846 2856 RECT rc; 2847 2857 2858 HideCaret(hwnd); 2859 2848 2860 if (!es->bEnableState || (es->style & ES_READONLY)) 2849 2861 brush = (HBRUSH)EDIT_SEND_CTLCOLORSTATIC(hwnd, dc); … … 2855 2867 2856 2868 GetClientRect(hwnd, &rc); 2857 IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom); CB:2869 IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom); 2858 2870 GetClipBox(dc, &rc); 2859 2871 /* … … 2864 2876 */ 2865 2877 FillRect(dc, &rc, brush); 2878 2879 ShowCaret(hwnd); 2880 2866 2881 return -1; 2867 2882 }
Note:
See TracChangeset
for help on using the changeset viewer.