06-07-2005, 01:01 PM
I would rather download a specialized program.
This code highlights the first difference. You should also set ES_NOHIDESEL style for both Edit controls.
This code highlights the first difference. You should also set ES_NOHIDESEL style for both Edit controls.
...
sel wParam
,case 5
,int h1=id(3 hDlg)
,int h2=id(4 hDlg)
,int i
,int minlen=iif(texto1.len<texto2.len texto1.len texto2.len)
,for i 0 minlen
,,if(texto1[i]!=texto2[i])
,,,SetFocus h1
,,,SendMessage h1 EM_SETSEL i i+1
,,,SendMessage h1 EM_SCROLLCARET 0 0
,,,SetFocus h2
,,,SendMessage h2 EM_SETSEL i i+1
,,,SendMessage h2 EM_SCROLLCARET 0 0
,,,break
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1