Click here to Skip to main content
15,884,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionautomation ,passing bitmap in MSWord Pin
Sopi Singh9-Aug-06 20:51
Sopi Singh9-Aug-06 20:51 
QuestionSerial port communication using VC++ Pin
I_arora9-Aug-06 20:38
I_arora9-Aug-06 20:38 
AnswerRe: Serial port communication using VC++ Pin
Cedric Moonen9-Aug-06 21:02
Cedric Moonen9-Aug-06 21:02 
AnswerRe: Serial port communication using VC++ Pin
ThatsAlok9-Aug-06 21:20
ThatsAlok9-Aug-06 21:20 
AnswerRe: Serial port communication using VC++ Pin
David Crow10-Aug-06 3:28
David Crow10-Aug-06 3:28 
AnswerRe: Serial port communication using VC++ Pin
normanS10-Aug-06 4:49
normanS10-Aug-06 4:49 
AnswerRe: Serial port communication using VC++ Pin
Hamid_RT10-Aug-06 8:22
Hamid_RT10-Aug-06 8:22 
QuestionPlease help !!!! Pin
Bravoone_20069-Aug-06 20:22
Bravoone_20069-Aug-06 20:22 
all i want is to search in column 1 not 0 how ? in this code !!!! please help !!!

this code find an item in column 0 !


void CMyList::OnOK()
{

UpdateData();


CWaitCursor wait; // Display a wait cursor

int x = m_list.GetItemCount();


for (int j = 0; j < x; j++) // For each item in the list
{
CString strWord;

strWord = m_list.GetItemText(j, 0); // Get the word

strWord.TrimLeft(); // Remove leading spaces
strWord.TrimRight(); // Remove trailing spaces

// Overwrite the old word with the new trimmed word
m_list.SetItemText(j, 0, strWord);

}


//----------------------------------------------------------------------------------//

CString sName = _T("Name");
m_name.GetWindowText(sName);


LVFINDINFO stInfo = {0};
stInfo.flags = LVFI_STRING;
stInfo.psz = sName;
int nItem = m_list.FindItem( &stInfo );
if( nItem != -1 )
{
// the item is in the list control
CString sSecondColumnText = m_list.GetItemText( nItem, 1 );
// set the text to the second edit box
m_rezult.SetWindowText( sSecondColumnText );

}

}


how ?
please an example !!!!
please help !
i will wait your answer because i don t now how ,i don t have no ideea !

Bravoone

AnswerRe: Please help !!!! Pin
sujtha9-Aug-06 20:44
sujtha9-Aug-06 20:44 
QuestionRe: Please help !!!! Pin
Bravoone_20069-Aug-06 21:24
Bravoone_20069-Aug-06 21:24 
AnswerRe: Please help !!!! Pin
Hamid_RT9-Aug-06 21:29
Hamid_RT9-Aug-06 21:29 
GeneralRe: Please help !!!! Pin
Bravoone_20069-Aug-06 21:37
Bravoone_20069-Aug-06 21:37 
GeneralRe: Please help !!!! Pin
Hamid_RT9-Aug-06 21:47
Hamid_RT9-Aug-06 21:47 
GeneralRe: Please help !!!! Pin
Bravoone_20069-Aug-06 22:01
Bravoone_20069-Aug-06 22:01 
GeneralRe: Please help !!!! Pin
Hamid_RT9-Aug-06 22:40
Hamid_RT9-Aug-06 22:40 
GeneralRe: Please help !!!! Pin
Hamid_RT10-Aug-06 8:20
Hamid_RT10-Aug-06 8:20 
QuestionRe: Please help !!!! Pin
Bravoone_200610-Aug-06 19:47
Bravoone_200610-Aug-06 19:47 
QuestionMoving Ellipse Problem Pin
uday kiran janaswamy9-Aug-06 19:59
uday kiran janaswamy9-Aug-06 19:59 
AnswerRe: Moving Ellipse Problem Pin
_AnsHUMAN_ 9-Aug-06 20:20
_AnsHUMAN_ 9-Aug-06 20:20 
AnswerRe: Moving Ellipse Problem Pin
Hamid_RT9-Aug-06 21:22
Hamid_RT9-Aug-06 21:22 
QuestionCapturing key presses with WinProc Pin
Coremn9-Aug-06 19:42
Coremn9-Aug-06 19:42 
AnswerRe: Capturing key presses with WinProc Pin
sunit59-Aug-06 19:57
sunit59-Aug-06 19:57 
AnswerRe: Capturing key presses with WinProc Pin
ThatsAlok9-Aug-06 21:59
ThatsAlok9-Aug-06 21:59 
QuestionPort numbers Pin
Anu_Bala9-Aug-06 19:34
Anu_Bala9-Aug-06 19:34 
AnswerRe: Port numbers Pin
Divyang Mithaiwala9-Aug-06 19:42
Divyang Mithaiwala9-Aug-06 19:42 

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.