[C++] Element sélectionné ComboBox

arthix Messages postés 53 Statut Membre -  
Lord Woden Messages postés 89 Statut Membre -
Salut !
Comment est-il possible de récupérer le texte d'un élément d'une ComboBox? Pour comparaison, dans une ListBox on fait GetText(indice, chaine_cible)... Mais cette fonction est inexistante pour Combo...
Please help !!
Merci

1 réponse

  1. Lord Woden Messages postés 89 Statut Membre 21
     
    Salut,

    en fait si tu veux récupérer l'item sélectionné dans une combo box, il te faut utiliser la fonction "DlgDirSelectComboBoxEx" :

    BOOL DlgDirSelectComboBoxEx(
    HWND hDlg, // handle to a dialog box
    LPTSTR lpString, // pointer to buffer for path string
    int nCount, // number of characters in path string
    int nIDComboBox // combo box identifier
    );

    @+ Lord Woden ;o)
    0