cs_JCpp
Messages postés334Date d'inscriptionsamedi 12 janvier 2002StatutMembreDernière intervention 3 juillet 2010
-
6 mai 2008 à 18:34
cs_JCpp
Messages postés334Date d'inscriptionsamedi 12 janvier 2002StatutMembreDernière intervention 3 juillet 2010
-
6 mai 2008 à 21:40
Bonjour
J'ai trois petites questions en C++ Win32
Comment on fait, pour sauter une ligne avec un « Listbox Control » ?
SendDlgItemMessage(hdlg, IDC_LIST1, LB_RESETCONTENT, 0, 0);
SendDlgItemMessage(hdlg, IDC_LIST1, LB_ADDSTRING, 0,(LPARAM)"-=[ T E S T ]=-");
SendDlgItemMessage(hdlg, IDC_LIST1, LB_ADDSTRING, 0,(LPARAM)" "); // ICI
SendDlgItemMessage(hdlg, IDC_LIST1, LB_ADDSTRING, 0,(LPARAM)"test 1 :");
Comment forcer l'activation de la croix ?Check-box Control? ?
CheckDlgButton(hdlg, IDC_CHECK1,true);
// ICI
Est il possible avec un ?Progress Bar Control? de remettre le compteur a zéro ?
// On initialise "Progress Bar Control"
SendDlgItemMessage(hdlg, IDC_PROGRESS1, PBM_SETRANGE, 0, MAKELPARAM(0, 5));
SendDlgItemMessage(hdlg, IDC_PROGRESS1, PBM_SETSTEP, (WPARAM) 1, 0);
...
SetWindowText(GetDlgItem(hdlg,IDC_File),fname);
...
// ICI, comment on fait pour remettre a zéro IDC_PROGRESS1, car en le reintialisant Comme au dessu, ça ne fonctionne pas.