Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.08.07;
Скачать: 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 вся ветка

Текущий архив: 2005.08.07;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.022 c
14-1121353595
Сибиряк
2005-07-14 19:06
2005.08.07
Портировать с РНР на Delphi.


8-1112552568
seregka
2005-04-03 22:22
2005.08.07
MP3 tags


1-1121748839
Shopot
2005-07-19 08:53
2005.08.07
Как использовать технологию DragDrop?


3-1119982517
serguncho
2005-06-28 22:15
2005.08.07
Проблема с сохранением информации в Firebird


4-1118072858
NikNet
2005-06-06 19:47
2005.08.07
Как сделать распознование речи на изображени?