Changeset 2873 for trunk/src/user32/edit.cpp
- Timestamp:
- Feb 23, 2000, 6:05:19 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r2852 r2873 1 /* $Id: edit.cpp,v 1.3 5 2000-02-21 17:25:26 cbratschi Exp $ */1 /* $Id: edit.cpp,v 1.36 2000-02-23 17:05:16 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 291 291 { 292 292 EDIT_EM_ReplaceSel(hwnd, es, TRUE, ""); 293 294 295 293 if (es->flags & EF_UPDATE) { 294 es->flags &= ~EF_UPDATE; 295 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 296 296 } 297 297 } … … 2883 2883 // es->undo_insert_count, es->undo_text); 2884 2884 2885 2886 2887 2888 2885 if (es->flags & EF_UPDATE) { 2886 es->flags &= ~EF_UPDATE; 2887 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 2888 } 2889 2889 2890 2890 return TRUE; … … 2932 2932 { 2933 2933 EDIT_EM_ReplaceSel(hwnd, es, TRUE, "\r\n"); 2934 2935 2936 2934 if (es->flags & EF_UPDATE) { 2935 es->flags &= ~EF_UPDATE; 2936 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 2937 2937 } 2938 2938 } … … 2943 2943 { 2944 2944 EDIT_EM_ReplaceSel(hwnd, es, TRUE, "\t"); 2945 2946 2947 2948 2945 if (es->flags & EF_UPDATE) { 2946 es->flags &= ~EF_UPDATE; 2947 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 2948 } 2949 2949 } 2950 2950 break; … … 2962 2962 break; 2963 2963 //CB: are these three keys documented or Linux style??? 2964 2965 2966 2967 2968 2969 2970 2971 2972 2964 case 0x03: /* ^C */ 2965 SendMessageA(hwnd, WM_COPY, 0, 0); 2966 break; 2967 case 0x16: /* ^V */ 2968 SendMessageA(hwnd, WM_PASTE, 0, 0); 2969 break; 2970 case 0x18: /* ^X */ 2971 SendMessageA(hwnd, WM_CUT, 0, 0); 2972 break; 2973 2973 2974 2974 default: … … 3126 3126 es->selection_start = es->selection_end = 0; 3127 3127 EDIT_EM_ScrollCaret(hwnd, es); 3128 3129 3130 3131 3128 if (es->flags & EF_UPDATE) { 3129 es->flags &= ~EF_UPDATE; 3130 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 3131 } 3132 3132 } 3133 3133 return 0; … … 3143 3143 { 3144 3144 if (!es) /* Protect against multiple destroy messages */ 3145 3145 return; 3146 3146 3147 3147 if (es->hloc) { … … 3359 3359 HWND hLBox; 3360 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3361 /******************************************************************** 3362 * This if statement used to check to see if the parent of the 3363 * edit control was a 'combobox' by comparing the ATOM of the parent 3364 * to a table of internal window control ATOMs. However, this check 3365 * would fail if the parent was a superclassed combobox (Although 3366 * having the same basic functionality of a combobox, it has a 3367 * different name and ATOM, thus defeating this check.) 3368 * 3369 * The safe way to determine if the parent is a combobox is to send it 3370 * a message only a combo box would understand. I send it a message 3371 * CB_GETCOUNT, if I get 0 then the parent is not a combobox - 3372 3372 * return FALSE. If I get > 0, then the parent IS a combobox 3373 3373 * (or sub/super classed derrivative thereof) 3374 3374 ********************************************************************/ 3375 3375 #if 0 //CB: our code 3376 3376 if (GetClassWord(GetParent(hwnd),GCW_ATOM) == GlobalFindAtomA(COMBOBOXCLASSNAME) && 3377 3377 (hLBox = COMBO_GetLBWindow(GetParent(hwnd)))) 3378 #else 3378 #else 3379 3379 if ( 3380 3380 ((SendMessageA(GetParent(hwnd), CB_GETCOUNT, 0, 0)) > 0) && … … 3839 3839 if (es->flags & EF_UPDATE) 3840 3840 { 3841 es->flags &= ~EF_UPDATE; 3841 //CB: don't reset flag or EN_CHANGE is lost! 3842 //es->flags &= ~EF_UPDATE; 3842 3843 EDIT_NOTIFY_PARENT(hwnd,EN_UPDATE); 3843 3844 } … … 3904 3905 GlobalUnlock(hsrc); 3905 3906 3906 3907 3908 3909 3907 if (es->flags & EF_UPDATE) { 3908 es->flags &= ~EF_UPDATE; 3909 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 3910 } 3910 3911 } 3911 3912 CloseClipboard();
Note:
See TracChangeset
for help on using the changeset viewer.