case CBN_SELCHANGE: { int idx_row; char strText[255] = { 0 }; idx_row = SendMessage(hComboBox, CB_GETCURSEL, 0, 0); SendMessage(hComboBox, CB_GETLBTEXT, idx_row, (LPARAM)strText);//ΠΏΠ°ΡΡΠΈΠΌ ΡΡΡΠΎΠΊΡ ΠΈΠ· ΠΊΠΎΠΌΠ±ΠΎΠ±ΠΎΠΊΡΠ° ΡΠΈΠΏΠ° ".exe" int index = SendMessage(hwndList1, LB_FINDSTRING, (WPARAM)(-1), (LPARAM)(strText));//ΠΈΠ½Π΄Π΅ΠΊΡ ΡΡΡΠΎΠΊΠΈ Ρ Π΄Π°Π½Π½ΡΠΌ ΡΠ°ΡΡΠΈΡΠ΅Π½ΠΈΠ΅ΠΌ do { SendMessage(hwndList1, LB_SETSEL, TRUE, (LPARAM)index);//Π²ΡΠ΄Π΅Π»ΡΠ΅ΠΌ ΡΡΡΠΎΠΊΠΈ Π»ΠΈΡΡΠ±ΠΎΠΊΡΠ° } while (SendMessage(hwndList1, LB_SETSEL, TRUE, (LPARAM)index) != LB_ERR); break; } An extension of type β.exeβ is placed in strText, and in the list box there is a list of file names. I canβt select all the files with the selected extension ...
do ... whileheredo ... while? - VTTSendMessageis called with the same parameters. - VTT