Changeset 2221 for trunk/src/user32/edit.cpp
- Timestamp:
- Dec 27, 1999, 11:54:49 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r2211 r2221 1 /* $Id: edit.cpp,v 1.2 6 1999-12-27 17:08:07cbratschi Exp $ */1 /* $Id: edit.cpp,v 1.27 1999-12-27 22:53:52 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 1938 1938 INT i; 1939 1939 1940 if (!lpch || *(WORD*)lpch == 0) return 0;1940 if (!lpch || (*(WORD*)lpch == 0)) return 0; 1941 1941 1942 1942 if (es->style & ES_MULTILINE) { … … 2330 2330 if (strl) 2331 2331 { 2332 if ( es->style & ES_NUMBER&& !EDIT_CheckNumber((CHAR*)lpsz_replace))2332 if ((es->style & ES_NUMBER) && !EDIT_CheckNumber((CHAR*)lpsz_replace)) 2333 2333 MessageBeep(MB_ICONEXCLAMATION); 2334 2334 else … … 2535 2535 EDIT_LockBuffer(hwnd, es); 2536 2536 2537 if (es->text && es->text[0] != 0)2537 if (es->text && (es->text[0] != 0)) 2538 2538 { 2539 2539 if (es->style & ES_NUMBER) … … 2623 2623 //TRACE_(edit)("left=%d, right=%d\n", es->left_margin, es->right_margin); 2624 2624 2625 if ( oldLeft != es->left_margin || oldRight != es->right_margin)2625 if ((oldLeft != es->left_margin) || (oldRight != es->right_margin)) 2626 2626 { 2627 2627 GetClientRect(hwnd, &r); … … 2738 2738 ORDER_UINT(start, old_start); 2739 2739 ORDER_UINT(old_start, old_end); 2740 if ( start == old_start && end == old_end) return;2740 if ((start == old_start) && (end == old_end)) return; 2741 2741 if (end != old_start) 2742 2742 { … … 2895 2895 if (es->style & ES_NUMBER) 2896 2896 { 2897 if (( BYTE)c < '0' || (BYTE)c > '9') MessageBeep(MB_ICONEXCLAMATION);2897 if (((BYTE)c < '0') || ((BYTE)c > '9')) MessageBeep(MB_ICONEXCLAMATION); 2898 2898 return; 2899 2899 } … … 3918 3918 EDIT_EM_Undo(hwnd, es); 3919 3919 return 0; 3920 } else if ( key == VK_UP || key == VK_DOWN)3920 } else if ((key == VK_UP) || (key == VK_DOWN)) 3921 3921 if (EDIT_CheckCombo(hwnd, WM_SYSKEYDOWN, key, key_data)) 3922 3922 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.