Je dois utiliser le message EM_GETLINE pour récupérrer une ligne d'un Rich Edit.
Pour lParam, la MSDN dit
"Pointer to the buffer that receives a copy of the line. Before sending the message, set the first word of this buffer to the size, in TCHARs, of the buffer. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. The size in the first word is overwritten by the copied line."
Si j'ai bien compris, il s'agit de mettre la taille du tampon dans le premier mot, mais je ne vois pas exactement comment faire (dois-je mettre le poids fort en premier ou en deuxieme?). Par exemple pour une taille de 258 je dois mettre 2 et 1. Lequel à 1 et lequel à 2?
Est-ce qu'un sprintf serait satisfaisant?
Merci