hi there,

i have two richedits and i want to show the selection in richedit1 on richedit2 too.
i want that the same positions in richedits are selected.
i have subclassed the richedits.

REditProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM
LOCAL chr:CHARRANGE

mov eax, hWnd

.ELSEIF uMsg == WM_MOUSEMOVE && wParam == MK_LBUTTON
.IF eax == hRichEdit1
Invoke SendMessage, hRichEdit1, EM_EXGETSEL, 0, addr chr
Invoke SendMessage, hRichEdit2, EM_EXSETSEL, 0, addr chr
Invoke SendMessage, hRichEdit2, EM_HIDESELECTION, 0, 0
.ENDIF
.ENDIF

Invoke CallWindowProc, DefProc, hWnd, uMsg, wParam, lParam
mov eax, TRUE
ret
REditProc endp


the problem is that he always marks all in the second richedit.....
what is wrong here or can anybody show me how to do??

thx
Posted on 2004-04-08 07:37:57 by Tenshi
Done.
i found my problem :)

Thanks anyway :)
Posted on 2004-04-08 08:00:22 by Tenshi