SetDlgItemText(hWnd, IDC_EDIT1, "Bonjour"); ou SetWindowText(hEdit1,"Bonjour");
/*Déclaration du handle de l'EditBox*/ HWND hEdit1; /*On affiche le texte dans l'EditBox*/ SetWindowText(hEdit1, "Bonjour");
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questioncase WM_COMMAND: if (IndCurrentNode != 999 && IndCurrentButton != 999) { char Buf [64]; char Buf2 [2]; GetWindowText (Zone_Texte, Buf, 64); GetWindowText (Zone_Racc, Buf2, 2); VNodes[IndCurrentNode].ModifButton (IndCurrentButton,string (Buf),Buf2[0]); break; } if (HIWORD(wParam) == BN_CLICKED) switch (wParam) { case ID_BUTTON_1: FindButton (0,0); goto Lbl; case ID_BUTTON_2: FindButton (1,0); goto Lbl; case ID_BUTTON_3: FindButton (2,0); goto Lbl; case ID_BUTTON_4: FindButton (3,0); goto Lbl; case ID_BUTTON_5: FindButton (0,1); goto Lbl; case ID_BUTTON_6: FindButton (1,1); goto Lbl; case ID_BUTTON_7: FindButton (2,1); goto Lbl; case ID_BUTTON_8: FindButton (3,1); goto Lbl; case ID_BUTTON_9: FindButton (0,2); goto Lbl; case ID_BUTTON_10: FindButton (1,2); goto Lbl; case ID_BUTTON_11: FindButton (2,2); goto Lbl; case ID_BUTTON_12: FindButton (3,2); Lbl: SendMessage (Zone_Texte, WM_SETTEXT, 0,(LPARAM) string (VNodes[IndCurrentNode].GetButtons()[IndCurrentButton].GetTexte()).c_str()); SendMessage (Zone_Racc, WM_SETTEXT, 0,(LPARAM) string (1, VNodes[IndCurrentNode].GetButtons()[IndCurrentButton] .GetRaccourci()).c_str());
if (IndCurrentNode != 999 && IndCurrentButton != 999) { char Buf [64]; char Buf2 [2]; GetWindowText (Zone_Texte, Buf, 64); GetWindowText (Zone_Racc, Buf2, 2); VNodes[IndCurrentNode].ModifButton (IndCurrentButton,string (Buf),Buf2[0]); break; }