Click here to Skip to main content
15,886,067 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: hy all ! Pin
PlayByTheRules7-Aug-06 1:39
PlayByTheRules7-Aug-06 1:39 
QuestionRe: hy all ! Pin
David Crow7-Aug-06 3:18
David Crow7-Aug-06 3:18 
QuestionBlockQuote Pin
Sarvan AL6-Aug-06 21:02
Sarvan AL6-Aug-06 21:02 
AnswerRe: BlockQuote Pin
_AnsHUMAN_ 6-Aug-06 22:01
_AnsHUMAN_ 6-Aug-06 22:01 
GeneralRe: BlockQuote___Thanks Pin
Sarvan AL7-Aug-06 19:50
Sarvan AL7-Aug-06 19:50 
QuestionAGAIN MY LIST CONTROL : Hy all ! Pin
Bravoone_20066-Aug-06 21:01
Bravoone_20066-Aug-06 21:01 
QuestionRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Hamid_RT6-Aug-06 21:54
Hamid_RT6-Aug-06 21:54 
QuestionRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Bravoone_20066-Aug-06 22:17
Bravoone_20066-Aug-06 22:17 
again may list control !

now i have 3 edit boxes ,and 2 i want to search in list control !
this code find 1 item in list control but now i want to find 2 items and 1 result : this is the code :



CString sSecondColumnText;

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

LVFINDINFO stInfo = {0};
stInfo.flags = LVFI_PARTIAL;
stInfo.psz = sName;
int nItem = m_list2.FindItem( &stInfo );

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


now :

0 1 2
---------------------------------------------------
|Name | City | Country |
---------------------------------------------------
|George | London | England |
---------------------------------------------------
|George | NewYork | USA |
--------------------------------------------------

now if in m_name i search for "George" and m_city i search for "London" if is , i need the answer in m_explicatia : "England"

now if in m_name i search for "George" and m_city i search for "NewYork" if is , i need the answer in m_explicatia : "USA"


m_name and m_city i will search in the same time !!!!!!

I don t now how to do it!
Please i need some help !!!!!!!!!!!!



Bravoone

AnswerRe: AGAIN MY LIST CONTROL : Hy all ! Pin
Hamid_RT6-Aug-06 22:51
Hamid_RT6-Aug-06 22:51 
QuestionBase64 Pin
urid6-Aug-06 20:51
urid6-Aug-06 20:51 
AnswerRe: Base64 Pin
David Crow7-Aug-06 3:21
David Crow7-Aug-06 3:21 
Question[Message Deleted] Pin
georgekjolly6-Aug-06 19:51
georgekjolly6-Aug-06 19:51 
AnswerRe: Changing Text color on a particular Raw in a CListCtrl Pin
Hamid_RT6-Aug-06 20:01
Hamid_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
Cristian 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
Cristian Amarie6-Aug-06 20:05 
AnswerRe: void CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug Pin
Hamid_RT6-Aug-06 20:04
Hamid_RT6-Aug-06 20:04 
GeneralRe: void CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug Pin
Cristian Amarie6-Aug-06 20:06
Cristian Amarie6-Aug-06 20:06 
AnswerRe: void CWnd::CenterWindow(CWnd* pAlternateOwner) small (?) bug Pin
David Crow7-Aug-06 3:27
David Crow7-Aug-06 3:27 
QuestionHow can I dissable the Combo box from Toolbar? [modified] Pin
Sameer_Thakur6-Aug-06 19:37
Sameer_Thakur6-Aug-06 19:37 
AnswerRe: How can I dissable the Combo box from Toolbar? Pin
Hamid_RT6-Aug-06 19:49
Hamid_RT6-Aug-06 19:49 
GeneralRe: How can I dissable the Combo box from Toolbar? Pin
Sameer_Thakur6-Aug-06 20:08
Sameer_Thakur6-Aug-06 20:08 
AnswerRe: How can I dissable the Combo box from Toolbar? Pin
_AnsHUMAN_ 6-Aug-06 19:53
_AnsHUMAN_ 6-Aug-06 19:53 
QuestionHow to Fill regions in a Bitmap with color? Pin
narayanagvs6-Aug-06 19:24
narayanagvs6-Aug-06 19:24 

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.