Bonjour a tous ;
pour obtenir l'index du charactere j'utilise la fonction suivant :
le problème c'est que cette fonction marche tres bien sous mon application,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 function getcharindex(h : HWND):integer; var PosCur : Tpoint; begin getcaretpos(PosCur); getcharindex := sendmessage(h,EM_CHARFROMPOS,0,Integer(@PosCur)); end;
mais ca ne fonctionne pas sous une autre application externe;
alors comment j'obtien l'index d'un charactere situé dans un richedit d'une application externe ?
Partager