Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to declare WindowProc function Pin
Vipin Aravind9-Aug-06 5:50
Vipin Aravind9-Aug-06 5:50 
GeneralRe: How to declare WindowProc function Pin
toxcct9-Aug-06 5:53
toxcct9-Aug-06 5:53 
GeneralRe: How to declare WindowProc function Pin
Vipin Aravind9-Aug-06 6:02
Vipin Aravind9-Aug-06 6:02 
GeneralRe: How to declare WindowProc function Pin
mmhu9-Aug-06 6:42
mmhu9-Aug-06 6:42 
QuestionFile Update Pin
Parthi_Appu9-Aug-06 2:49
Parthi_Appu9-Aug-06 2:49 
AnswerRe: File Update Pin
kakan9-Aug-06 3:03
professionalkakan9-Aug-06 3:03 
QuestionVisual Studio 6.0 Add-In AutoShow Macro Tab Pin
Christopher Stratmann9-Aug-06 2:31
Christopher Stratmann9-Aug-06 2:31 
QuestionCListCtrl Please Help ! Pin
Bravoone_20069-Aug-06 2:01
Bravoone_20069-Aug-06 2:01 
Thanks but nothing is working i have tried everyting ! my code remaine the same !
Please someone help me !



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 );
}

}

///////////////////////////////////////////////////////////////////////
----------------------------------
| Name | City | Country |
----------------------------------
| George| London| England |
-----------------------------------
|George |NewYork | USA |
-----------------------------------

for ex :
all i whant is to find if george - London - England exist !
or
all i whant is to find if george - NewYork - USA exist !


m_name , m_city , m_rezult ! m_rezult <----- Country!!!!


Thank you !


Bravoone

QuestionRe: CListCtrl Please Help ! Pin
Hamid_RT9-Aug-06 2:23
Hamid_RT9-Aug-06 2:23 
AnswerRe: CListCtrl Please Help ! Pin
Bravoone_20069-Aug-06 2:32
Bravoone_20069-Aug-06 2:32 
GeneralRe: CListCtrl Please Help ! Pin
Hamid_RT9-Aug-06 3:00
Hamid_RT9-Aug-06 3:00 
GeneralRe: CListCtrl Please Help ! Pin
David Crow9-Aug-06 3:41
David Crow9-Aug-06 3:41 
QuestionDetecting a video play [modified] Pin
pavan g9-Aug-06 1:56
pavan g9-Aug-06 1:56 
QuestionRe: Detecting a video play Pin
Hamid_RT9-Aug-06 2:32
Hamid_RT9-Aug-06 2:32 
AnswerRe: Detecting a video play [modified] Pin
pavan g9-Aug-06 17:53
pavan g9-Aug-06 17:53 
AnswerRe: Detecting a video play Pin
Sarath C9-Aug-06 4:47
Sarath C9-Aug-06 4:47 
GeneralRe: Detecting a video play [modified] Pin
pavan g9-Aug-06 17:55
pavan g9-Aug-06 17:55 
QuestionHOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++ Pin
phijophlip9-Aug-06 1:51
phijophlip9-Aug-06 1:51 
AnswerRe: HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++ Pin
Parthi_Appu9-Aug-06 1:58
Parthi_Appu9-Aug-06 1:58 
AnswerRe: HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++ Pin
Bravoone_20069-Aug-06 2:15
Bravoone_20069-Aug-06 2:15 
AnswerRe: HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++ Pin
Hamid_RT9-Aug-06 2:24
Hamid_RT9-Aug-06 2:24 
AnswerRe: HOW TO LOAD BITMAP IMAGE TO DIALOG FORM IN VC++ Pin
Vipin Aravind9-Aug-06 5:40
Vipin Aravind9-Aug-06 5:40 
QuestionError in reading file Pin
Anu_Bala9-Aug-06 1:34
Anu_Bala9-Aug-06 1:34 
AnswerRe: Error in reading file [modified] Pin
Parthi_Appu9-Aug-06 1:48
Parthi_Appu9-Aug-06 1:48 
GeneralRe: Error in reading file Pin
Anu_Bala9-Aug-06 2:08
Anu_Bala9-Aug-06 2:08 

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.