[PATCH 1/2] riched20: Implement ITextSelection::GetText. (try 3)

Huw Davies huw at codeweavers.com
Tue Jul 15 04:23:00 CDT 2014


On 15 Jul 2014, at 02:18, Jactry Zeng wrote:
> But because of bug of EM_SETSEL or EM_GETSEL, this feature
> still cannot be implemented completely.
> For example:
> When the text in Rich Edit control is: "TestSomeText"
>                                                        01234567890123
> We cannot distinguish between SendMessageA(w, EM_SETSEL, 0, 12) and SendMessageA(w, EM_SETSEL, 0, 13).
> Attachment is the patch, I just added wine_todo for failed tests cause by this bug.
> But I still have no idea about fixing this bug. Could you give me some suggestion?
> Or just mark them as todo now is OK?

Do you fully understand this bug yet?  In other words under what conditions does the current implementation fail?
It should be trivial to fix up ME_SetSelection().

Huw.




More information about the wine-devel mailing list