Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: want ur help Pin
CPallini10-Aug-09 21:31
mveCPallini10-Aug-09 21:31 
AnswerRe: want ur help Pin
Rajesh R Subramanian11-Aug-09 1:48
professionalRajesh R Subramanian11-Aug-09 1:48 
QuestionHelp about MSCOMM in VC++.NET 2003 Pin
shiv@nand10-Aug-09 21:03
shiv@nand10-Aug-09 21:03 
AnswerRe: Help about MSCOMM in VC++.NET 2003 Pin
CPallini10-Aug-09 21:29
mveCPallini10-Aug-09 21:29 
QuestionHow can use Find Operation in CListCtrl? Pin
Le@rner10-Aug-09 20:15
Le@rner10-Aug-09 20:15 
AnswerRe: How can use Find Operation in CListCtrl? Pin
Code-o-mat10-Aug-09 20:39
Code-o-mat10-Aug-09 20:39 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Le@rner11-Aug-09 1:08
Le@rner11-Aug-09 1:08 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Code-o-mat11-Aug-09 3:03
Code-o-mat11-Aug-09 3:03 
Well, you could try iterating thorough the items of the list control yourself, querying for the strings in the columns and comparing them, so something like this:
for (int row = 0, endRow = the_list.GetItemCount(); row < endRow; row++) //Iterate thorough the rows
{
  for (int col = 0; col < column_count; col++) //Iterate the "columns of this row"
  {
    CString Text;
    Text = the_list.GetItemText(row, col);
    if (Text.CompareNoCase(the_text_to_search_for) == 0)
    { //This "cell" contains the text we are searching for, let's select this row for example
      the_list.SetItemState(row, LVIS_SELECTED, LVIS_SELECTED);
      break; //break from the column iteration since we already found the string, no need to look for more
    }
  }
}
How about this?

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: How can use Find Operation in CListCtrl? Pin
Le@rner11-Aug-09 18:34
Le@rner11-Aug-09 18:34 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Code-o-mat11-Aug-09 21:21
Code-o-mat11-Aug-09 21:21 
GeneralRe: How can use Find Operation in CListCtrl? Pin
Le@rner11-Aug-09 21:24
Le@rner11-Aug-09 21:24 
QuestionHow can I manage the disk space like manage the memory with C++ Pin
jibeex10-Aug-09 19:41
jibeex10-Aug-09 19:41 
AnswerRe: How can I manage the disk space like manage the memory with C++ Pin
Stuart Dootson10-Aug-09 21:41
professionalStuart Dootson10-Aug-09 21:41 
QuestionDebug a Com DLL Pin
002comp10-Aug-09 19:26
002comp10-Aug-09 19:26 
AnswerRe: Debug a Com DLL Pin
Adam Roderick J10-Aug-09 19:48
Adam Roderick J10-Aug-09 19:48 
GeneralUnregister a DLL Pin
002comp10-Aug-09 20:11
002comp10-Aug-09 20:11 
GeneralRe: Unregister a DLL Pin
Adam Roderick J10-Aug-09 20:30
Adam Roderick J10-Aug-09 20:30 
GeneralRe: Unregister a DLL Pin
002comp10-Aug-09 20:53
002comp10-Aug-09 20:53 
GeneralRe: Unregister a DLL Pin
Adam Roderick J11-Aug-09 0:18
Adam Roderick J11-Aug-09 0:18 
Questionini file Pin
Member 59031010-Aug-09 19:23
Member 59031010-Aug-09 19:23 
AnswerRe: ini file Pin
002comp10-Aug-09 19:31
002comp10-Aug-09 19:31 
AnswerRe: ini file Pin
Joe Woodbury10-Aug-09 19:44
professionalJoe Woodbury10-Aug-09 19:44 
GeneralRe: ini file Pin
Adam Roderick J10-Aug-09 19:54
Adam Roderick J10-Aug-09 19:54 
Question#define problem Pin
kk.tvm10-Aug-09 19:02
kk.tvm10-Aug-09 19:02 
AnswerRe: #define problem Pin
Code-o-mat10-Aug-09 20:33
Code-o-mat10-Aug-09 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.