Вниз
Скачать: CL | DM;

Добавление строк в COMBOBOEX   Найти похожие ветки 

← →
Андрей Жук ©   (2005-06-06 17:24) [0]

Такой вот код
BOOL CALLBACK MyProcessEnumerator(DWORD dwPID, WORD wTask,
     LPCSTR szProcess, LPARAM lParam) {

 char ProcessName[80];
 
 COMBOBOXEXITEM cbei;  
 cbei.mask = CBEIF_TEXT;

if (wTask == 0)
     {
   
       wsprintf((LPTSTR) ProcessName,"%5u   %s\n", dwPID, szProcess);
cbei.iItem          = dwPID;
       cbei.pszText        = ProcessName;
       cbei.cchTextMax     = sizeof(ProcessName);
       SendMessage(hComboBox,CBEM_INSERTITEM,0,(LPARAM)&cbei);
     }
  return TRUE;
}

но он добавляет только 1 запись...


← →
Игорь Шевченко ©   (2005-06-06 17:49) [1]

А TFM нынче не в почете ?

When the message is sent, the iItem member must be set to indicate the zero-based index at which to insert the item. To insert an item at the end of the list, set the iItem member to -1



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: -0.932 c
14-1121290192
Alex_Korn
2005-07-14 01:29
2005.08.07
Черт !!! Застыл на одном месте !


3-1119806050
karat
2005-06-26 21:14
2005.08.07
Несколько подключений к базам в одном запросе?


5-1092297064
AlexFe
2004-08-12 11:51
2005.08.07
Изменение размера ComboBox


14-1121688983
Koala
2005-07-18 16:16
2005.08.07
"Украина может продать Ощадбанк " - идет распродажа


14-1121702601
Mike Kouzmine
2005-07-18 20:03
2005.08.07
Вставай проклятьем...............




   Наверх