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

C / C++ / MFC

 
AnswerRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen8-Aug-06 22:19
Cedric Moonen8-Aug-06 22:19 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Steve S9-Aug-06 1:39
Steve S9-Aug-06 1:39 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen9-Aug-06 1:52
Cedric Moonen9-Aug-06 1:52 
JokeRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Steve S9-Aug-06 1:53
Steve S9-Aug-06 1:53 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. Pin
Cedric Moonen9-Aug-06 1:57
Cedric Moonen9-Aug-06 1:57 
GeneralRe: Display the dialog Not in a Moving state.it should be fixed. [modified] Pin
Wes Aday9-Aug-06 4:42
professionalWes Aday9-Aug-06 4:42 
QuestionHow to Display the Dialog not in a Moving state? it should be fixed . Pin
Arul Joseph8-Aug-06 21:54
Arul Joseph8-Aug-06 21:54 
QuestionMy CListCtrl Pin
Bravoone_20068-Aug-06 21:03
Bravoone_20068-Aug-06 21:03 
How can I remove spaces from my string ? i don t now how ? how ?The spaces become from the database and when i loaded ... in list ctrl ....?
How can i : FindItem in the second column and the 3- column ...etc.?
Because my string searches only in the first column and GetItemText from second column , 3 column etc . this is my code the code from yesterday is not good for me :


void CMyList::OnOK()
{

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


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 )
{
// the item is in the list control
CString sSecondColumnText = m_list2.GetItemText( nItem, 1 );
// set the text to the second edit box
m_rezult.SetWindowText( sSecondColumnText );

}

}
Only this code works !
I remind you :

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

all i want is to find in my list the country from example from my both edit boxes : m_name (sName) , m_city (sCity) , m_rezult(sRezult)
Please help me with my code ....!!!!(The data are from a database fox pro and have spaces when i loaded )is works only with (LVFI_PARTIAL) and is not so good!
I promise you when i finish my program i will loaded on codeproject !
and will be very usefull for many things !
Thanks for your help ! And i will wait your answer because i dont now how to continue i will try something but ...

Bravoone

AnswerRe: My CListCtrl Pin
Hamid_RT8-Aug-06 21:09
Hamid_RT8-Aug-06 21:09 
AnswerRe: My CListCtrl Pin
Viorel.8-Aug-06 21:23
Viorel.8-Aug-06 21:23 
QuestionRe: My CListCtrl Pin
Bravoone_20068-Aug-06 21:51
Bravoone_20068-Aug-06 21:51 
AnswerRe: My CListCtrl Pin
Viorel.8-Aug-06 22:26
Viorel.8-Aug-06 22:26 
QuestionRe: My CListCtrl Pin
Bravoone_20069-Aug-06 0:55
Bravoone_20069-Aug-06 0:55 
AnswerRe: My CListCtrl Pin
David Crow9-Aug-06 3:22
David Crow9-Aug-06 3:22 
GeneralRe: My CListCtrl Pin
Bravoone_20069-Aug-06 19:52
Bravoone_20069-Aug-06 19:52 
QuestionRe: My CListCtrl Pin
David Crow10-Aug-06 2:39
David Crow10-Aug-06 2:39 
QuestionRe: My CListCtrl Pin
Bravoone_200610-Aug-06 21:06
Bravoone_200610-Aug-06 21:06 
QuestionSaving the file with date and time Pin
Rajiya8-Aug-06 20:41
Rajiya8-Aug-06 20:41 
AnswerRe: Saving the file with date and time Pin
Amar Sutar8-Aug-06 20:50
Amar Sutar8-Aug-06 20:50 
AnswerRe: Saving the file with date and time Pin
Hamid_RT8-Aug-06 21:51
Hamid_RT8-Aug-06 21:51 
Questionany ideas to reduce log file size or make log file size managed? Pin
George_George8-Aug-06 20:35
George_George8-Aug-06 20:35 
AnswerRe: any ideas to reduce log file size or make log file size managed? Pin
Hamid_RT8-Aug-06 20:58
Hamid_RT8-Aug-06 20:58 
GeneralRe: any ideas to reduce log file size or make log file size managed? Pin
George_George8-Aug-06 21:36
George_George8-Aug-06 21:36 
QuestionXML Programming in VC++.net Pin
Sarvan AL8-Aug-06 20:27
Sarvan AL8-Aug-06 20:27 
AnswerRe: XML Programming in VC++.net Pin
Hamid_RT8-Aug-06 20:48
Hamid_RT8-Aug-06 20:48 

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.