Ignore:
Timestamp:
Dec 27, 1999, 11:54:49 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/edit.cpp

    r2211 r2221  
    1 /* $Id: edit.cpp,v 1.26 1999-12-27 17:08:07 cbratschi Exp $ */
     1/* $Id: edit.cpp,v 1.27 1999-12-27 22:53:52 cbratschi Exp $ */
    22/*
    33 *      Edit control
     
    19381938        INT i;
    19391939
    1940         if (!lpch || *(WORD*)lpch == 0) return 0;
     1940        if (!lpch || (*(WORD*)lpch == 0)) return 0;
    19411941
    19421942        if (es->style & ES_MULTILINE) {
     
    23302330        if (strl)
    23312331        {
    2332           if (es->style & ES_NUMBER && !EDIT_CheckNumber((CHAR*)lpsz_replace))
     2332          if ((es->style & ES_NUMBER) && !EDIT_CheckNumber((CHAR*)lpsz_replace))
    23332333            MessageBeep(MB_ICONEXCLAMATION);
    23342334          else
     
    25352535        EDIT_LockBuffer(hwnd, es);
    25362536
    2537         if (es->text && es->text[0] != 0)
     2537        if (es->text && (es->text[0] != 0))
    25382538        {
    25392539          if (es->style & ES_NUMBER)
     
    26232623        //TRACE_(edit)("left=%d, right=%d\n", es->left_margin, es->right_margin);
    26242624
    2625         if (oldLeft != es->left_margin || oldRight != es->right_margin)
     2625        if ((oldLeft != es->left_margin) || (oldRight != es->right_margin))
    26262626        {
    26272627          GetClientRect(hwnd, &r);
     
    27382738        ORDER_UINT(start, old_start);
    27392739        ORDER_UINT(old_start, old_end);
    2740         if (start == old_start && end == old_end) return;
     2740        if ((start == old_start) && (end == old_end)) return;
    27412741        if (end != old_start)
    27422742        {
     
    28952895                  if (es->style & ES_NUMBER)
    28962896                  {
    2897                     if ((BYTE)c < '0' || (BYTE)c > '9') MessageBeep(MB_ICONEXCLAMATION);
     2897                    if (((BYTE)c < '0') || ((BYTE)c > '9')) MessageBeep(MB_ICONEXCLAMATION);
    28982898                    return;
    28992899                  }
     
    39183918                        EDIT_EM_Undo(hwnd, es);
    39193919                return 0;
    3920         } else if (key == VK_UP || key == VK_DOWN)
     3920        } else if ((key == VK_UP) || (key == VK_DOWN))
    39213921                if (EDIT_CheckCombo(hwnd, WM_SYSKEYDOWN, key, key_data))
    39223922                        return 0;
Note: See TracChangeset for help on using the changeset viewer.