Главная страница
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.031 c
3-1120136105
Developerr
2005-06-30 16:55
2005.08.07
ALTER TABLE FieldType Memo


14-1121257336
inic
2005-07-13 16:22
2005.08.07
Опрос: Как у вас изменялась зарплата с момента трудоустройства ?


1-1121671426
Джек
2005-07-18 11:23
2005.08.07
Поиск файлов


4-1118085789
jonni
2005-06-06 23:23
2005.08.07
Enumerat Screen Saver


3-1120035526
cvg
2005-06-29 12:58
2005.08.07
Как в Desktop е вывести список таблиц?