Ignore:
Timestamp:
Dec 18, 2002, 3:04:24 PM (23 years ago)
Author:
sandervl
Message:

Don't send focus related dialog messages if control already has focus

File:
1 edited

Legend:

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

    r9523 r9526  
    1 /* $Id: win32dlg.cpp,v 1.79 2002-12-18 12:28:06 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.80 2002-12-18 14:04:24 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    10201020    HWND hwndPrev = GetFocus();
    10211021
     1022#ifdef __WIN32OS2__
     1023    if(hwndPrev == hwndCtrl) {
     1024        //do nothing
     1025        //Acrobat Reader 4.05 opening screen (when EULA has not been shown
     1026        //local machine/software/adobe/acrobat reader/4.0/adobeviewer/EULA = 0)
     1027        //All text selected in edit control because focus set when the control
     1028        //already has focus.
     1029        //Not entirely sure this is 100% correct, but at least now it behaves
     1030        //like AR 4.05 in Windows NT 4.0 SP6
     1031        return;
     1032    }
     1033#endif
     1034
    10221035    if (IsChild( hwndPrev ))
    10231036    {
     
    10261039    }
    10271040    if (::SendMessageA(hwndCtrl, WM_GETDLGCODE, 0, 0 ) & DLGC_HASSETSEL)
    1028         ::SendMessageA(hwndCtrl, EM_SETSEL, FALSE, MAKELONG( 0, -1 ) );
     1041        ::SendMessageA(hwndCtrl, EM_SETSEL, 0, -1 );
    10291042    SetFocus( hwndCtrl );
    10301043}
Note: See TracChangeset for help on using the changeset viewer.