Вниз
Скачать: 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.45 MB
Время: 0.022 c
14-1121668876
GRAND25
2005-07-18 10:41
2005.08.07
Москва - Спартак 3:1!!!


14-1121414851
syte_ser78
2005-07-15 12:07
2005.08.07
Задачка для 6 класса.


14-1121319516
Ega23
2005-07-14 09:38
2005.08.07
С днем рождения! 14 июля


14-1121304491
Soft
2005-07-14 05:28
2005.08.07
Зачем в аспирантуре изучают философию?


1-1121918916
Demidoff
2005-07-21 08:08
2005.08.07
Как соединить print dialog c richedit.print?




   Наверх