Bonjour à tous
voila je travaille sur un plug-in windows media player et j ai un souci sur une fonction associee a un bouton.
je voudrai que ce bouton engendre un ajout à une listbox
LRESULT OnAjouter(WORD wNotifyCode, WORD wID, HWND hwndCtl, BOOL& fHandled)
{
/* Sélection d'un répertoire */
BROWSEINFO bi;
ITEMIDLIST *il;
char Buffer[MAX_PATH];
bi.hwndOwner=hwndCtl;
bi.pidlRoot=NULL;
bi.pszDisplayName=&Buffer[0];
bi.lpszTitle="Répertoire à surveiller :";
bi.ulFlags=0;
bi.lpfn=NULL;
if( (il=SHBrowseForFolder(&bi)) ==NULL ) return 0;
/* on met le chemin dans reps */
SHGetPathFromIDList(il, m_pPlugin->Reps[m_pPlugin->NbReps+1]);
/* nb de reps */
m_pPlugin->NbReps++;
/* affichage dans la listbox */
SendMessage(hwndCtl, LB_ADDSTRING, 0, (LPARAM)(LPCTSTR)m_pPlugin->Reps[m_pPlugin->NbReps]);
UpdateWindow();
SetFocus();
return 0;
}
mon souci viens du fait que je n arrive pas a récuperer le controle de la box
aidez moi svp!!!!
-=[CHEWIE]=-