int TextLength = 0; char *Buffer = NULL;
TextLength = GetWindowTextLength(Edit_Handle); Buffer = new char[TextLength+2];
TextLength = GetWindowText(Edit_Handle, Buffer, TextLength);
MessageBox(NULL, Buffer, "Contenue de Edit1", MB_OK); delete [] Buffer;
Voilà un exemple un peu plus complet, http://www.cppfrance.com/article.aspx?Val=149
~(.:: NitRic28@Hotmail.com ::.)~
------------------------------- Réponse au message : -------------------------------
> Salut, > j'ai télécharger un tutoriel sur la création de bouton, editbox... avec l'api windows. > J'ai un problème, car je n'arrive pas à récupérer le text écrit dans l'editbox! > Si quelqu'un pouvait m'aider, cela m'arrangerai beaucoup. > Merci.
|