Bonjour,
j'ai un petit probleme lors de l'utilisation de SendMessage
alors j'utilise un message:
SCI_INSERTTEXT(int pos, const char *text)
This inserts the zero terminated text string at position pos or at the current position if pos is -1. If the current position is after the insertion point then it is moved along with its surrounding text but no scrolling is performed.
Seulement rien ne s'insère avec le premier SendMessage, et la valeur (LPARAM)&bufNom correspond à un entier :/ ce que je ne comprends pas c'est que le deuxieme SendMessage lui permet d'inserer le texte declare.Code:
1
2
3
4
5
6 void Saisietexte(TCHAR bufNom[]) { SendMessage(nppData._scintillaMainHandle, SCI_INSERTTEXT, -1, (LPARAM)&bufNom); }//saisietexte()