Click here to Skip to main content
14,834,042 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I NEEEED HEEELLLPPP !!!!!!!!! Pin
PlayByTheRules7-Aug-06 1:41
MemberPlayByTheRules7-Aug-06 1:41 
AnswerRe: I NEEEED HEEELLLPPP !!!!!!!!! Pin
PlayByTheRules7-Aug-06 1:40
MemberPlayByTheRules7-Aug-06 1:40 
AnswerRe: I NEEEED HEEELLLPPP !!!!!!!!! Pin
David Crow7-Aug-06 2:56
MemberDavid Crow7-Aug-06 2:56 
QuestionPrinting Documents using VC++ Pin
Suren6-Aug-06 21:34
MemberSuren6-Aug-06 21:34 
AnswerRe: Printing Documents using VC++ Pin
georgekjolly7-Aug-06 20:19
Membergeorgekjolly7-Aug-06 20:19 
Questionhy all ! Pin
Bravoone_20066-Aug-06 21:18
MemberBravoone_20066-Aug-06 21:18 
AnswerRe: hy all ! Pin
_AnsHUMAN_ 6-Aug-06 22:03
Member_AnsHUMAN_ 6-Aug-06 22:03 
QuestionRe: hy all ! [modified] Pin
Bravoone_20066-Aug-06 22:22
MemberBravoone_20066-Aug-06 22:22 
Hy all !
Again i have a serious problem with my list control !
This code works , but now i want to do something new and I don t have any ideea how to do it !
If is someoane to help me with my code !

void CMyList::OnOK()
{

UpdateData();
m_list2.RedrawItems(0,m_list2.GetItemCount());


CString sName;



sName = _T("NAME");
m_name.GetWindowText(sName);
LVFINDINFO stInfo1 = {0};
stInfo.flags = LVFI_PARTIAL;
stInfo.psz = sName;
int nItem = m_list2.FindItem( &stInfo );

if( nItem != -1 )
{
sSecondColumnText = m_list2.GetItemText( nItem, 1 );
// set the text to the second edit box
m_explicatia.SetWindowText(sSecondColumnText);
}

}


This code find me the item in the second column !
Now i have 2 edit boxes to search in the list control !
And all i want is to find them in list control but :

My list control:
------------------------------------------------
| NAME | City | Country |
________________________________________________
|George |London | England |
|George |NewYork | USA |
------------------------------------------------

I have 3 edit boxes
1) m_name
2)m_City
3)m_rezult
all 3 are CEdit;

first i want to find if in the m_name matches with "NAME" next m_name with "City" and if is find it the "name" and the "City" from both 2 edit boxes i need the country in the m_rezult !
i want to search this :
George (m_name) -> London (m_City) and if exist on the same line :
m_rezult ---> England !!!!!!!!!!!!!!!

and :
George (m_name) -> NewYork (m_City) and if exist on the same line :
i need the rezult :
m_rezult ---> USA !!!!!!!!!!!!!!!



-- modified at 4:25 Monday 7th August, 2006

Bravoone

AnswerRe: hy all ! Pin
PlayByTheRules7-Aug-06 1:39
MemberPlayByTheRules7-Aug-06 1:39 
QuestionRe: hy all ! Pin
David Crow7-Aug-06 3:18
MemberDavid Crow7-Aug-06 3:18 
QuestionBlockQuote Pin
Sarvan AL6-Aug-06 21:02
MemberSarvan AL6-Aug-06 21:02 
AnswerRe: BlockQuote Pin
_AnsHUMAN_ 6-Aug-06 22:01
Member_AnsHUMAN_ 6-Aug-06 22:01 
GeneralRe: BlockQuote___Thanks Pin
Sarvan AL7-Aug-06 19:50
MemberSarvan AL7-Aug-06 19:50 
QuestionAGAIN MY LIST CONTROL : Hy all ! Pin
Bravoone_20066-Aug-06 21:01
MemberBravoone_20066-Aug-06 21:01 
QuestionRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Hamid_RT6-Aug-06 21:54
MemberHamid_RT6-Aug-06 21:54 
QuestionRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Bravoone_20066-Aug-06 22:17
MemberBravoone_20066-Aug-06 22:17 
AnswerRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Hamid_RT6-Aug-06 22:51
MemberHamid_RT6-Aug-06 22:51 
QuestionBase64 Pin
urid6-Aug-06 20:51
Memberurid6-Aug-06 20:51 
AnswerRe: Base64 Pin
David Crow7-Aug-06 3:21
MemberDavid Crow7-Aug-06 3:21 
Question[Message Deleted] Pin
georgekjolly6-Aug-06 19:51
Membergeorgekjolly6-Aug-06 19:51 
AnswerRe: Changing Text color on a particular Raw in a CListCtrl Pin
Hamid_RT6-Aug-06 20:01
MemberHamid_RT6-Aug-06 20:01 
AnswerRe: Changing Text color on a particular Raw in a CListCtrl Pin
Michael Dunn6-Aug-06 20:05
sitebuilderMichael Dunn6-Aug-06 20:05 
Questionvoid CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug [modified] Pin
Cristian Amarie6-Aug-06 19:49
MemberCristian Amarie6-Aug-06 19:49 
AnswerRe: void CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug Pin
Michael Dunn6-Aug-06 19:59
sitebuilderMichael Dunn6-Aug-06 19:59 
GeneralRe: void CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug Pin
Cristian Amarie6-Aug-06 20:05
MemberCristian Amarie6-Aug-06 20:05 

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.