PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 18 févr. 2008 à 19:01
'
'
' *- RETOURNE LA POSITION
(LIGNE) DU CURSEUR -*
Public Function
GetRowCaret()
As Long
GetRowCaret = oRtb.GetLineFromChar(oRtb.SelStart) + 1
End Function
'
'
' *- RETOURNE LA POSITION (COLONNE) DU CURSEUR
-*
Public Function GetColCaret() As Long
GetColCaret = oRtb.SelStart - SendMessage(oRtb.hwnd, EM_LINEINDEX,
GetRowCaret - 1,
ByVal 0&)
End Function
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 17 févr. 2008 à 13:20
salut,
beh dès le premier MouseMove reçu, tu les as dans les arguments retournés...
++
<hr size="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 18 févr. 2008 à 21:27
"çà ne marche pas" ne veut rien dire pour moi
et SendMessage est une API à déclarer comme toute API
(remplacer Long par Integer pour DotNet)
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
<hr size="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp