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

C / C++ / MFC

 
AnswerRe: HOW TO CALL OR LOAD .BMP FILE Pin
Le Thanh Cong16-Apr-06 21:55
Le Thanh Cong16-Apr-06 21:55 
Questionerror Pin
swapna_signsin14-Apr-06 5:13
swapna_signsin14-Apr-06 5:13 
AnswerRe: error Pin
Cedric Moonen14-Apr-06 5:19
Cedric Moonen14-Apr-06 5:19 
AnswerRe: error Pin
David Crow14-Apr-06 5:20
David Crow14-Apr-06 5:20 
QuestionHow to save the toolbar settings and selection Pin
Veeresh Hiremath14-Apr-06 4:29
Veeresh Hiremath14-Apr-06 4:29 
AnswerRe: How to save the toolbar settings and selection Pin
grigsoft14-Apr-06 6:04
grigsoft14-Apr-06 6:04 
AnswerRe: How to save the toolbar settings and selection Pin
Le Thanh Cong16-Apr-06 21:59
Le Thanh Cong16-Apr-06 21:59 
QuestionEdit control in VC++ Pin
sudeep_br14-Apr-06 4:22
sudeep_br14-Apr-06 4:22 
I have 2 edit control named "Name" and "Location". the "Location" control already contains the text as "C:\DesktopSearch\Index\". Now when i type text into "Name" field,it has to be appended with "Location" control's text i.e. eg

if i type into "Name" ,a text called hello, the "location" field shud be appended with this text i.e
"C:\DesktopSearch\Index\hello".

i have put the code in onchange event of "Name" edit control. The following is the code

void CCreateDlg::OnChangeEnterName()
{
CString csText,cs1,cs2;
m_name.GetWindowText(csText);
m_Enter_Location.GetWindowText(cs1);
cs2 = cs1 + csText;
m_Enter_Location.SetWindowText(cs2);

UpdateData(FALSE);
}

But when i type text into "Name" the characters are repeated.
m_name and m_Enter_Location are member variables for "Name" and "Location" edit controls respectively
how to solve this ? pls help

AnswerRe: Edit control in VC++ Pin
toxcct14-Apr-06 4:29
toxcct14-Apr-06 4:29 
AnswerRe: Edit control in VC++ Pin
Chris Losinger14-Apr-06 4:38
professionalChris Losinger14-Apr-06 4:38 
AnswerRe: Edit control in VC++ Pin
David Crow14-Apr-06 4:47
David Crow14-Apr-06 4:47 
QuestionA question about CTreeCtrl Pin
onlysaint14-Apr-06 4:00
onlysaint14-Apr-06 4:00 
AnswerRe: A question about CTreeCtrl Pin
Michael Dunn14-Apr-06 7:37
sitebuilderMichael Dunn14-Apr-06 7:37 
Questionhlp on comboboxes Pin
swapna_signsin14-Apr-06 3:33
swapna_signsin14-Apr-06 3:33 
AnswerRe: hlp on comboboxes Pin
David Crow14-Apr-06 3:50
David Crow14-Apr-06 3:50 
QuestionHardware abstraction layer Pin
Cedric Moonen14-Apr-06 3:09
Cedric Moonen14-Apr-06 3:09 
AnswerRe: Hardware abstraction layer Pin
Prakash Nadar14-Apr-06 3:20
Prakash Nadar14-Apr-06 3:20 
Questionworking with threads Pin
keerthikaaa14-Apr-06 2:28
keerthikaaa14-Apr-06 2:28 
AnswerRe: working with threads Pin
Cedric Moonen14-Apr-06 2:33
Cedric Moonen14-Apr-06 2:33 
AnswerRe: working with threads Pin
Aqueel14-Apr-06 2:43
Aqueel14-Apr-06 2:43 
AnswerRe: working with threads Pin
Russell'14-Apr-06 2:53
Russell'14-Apr-06 2:53 
AnswerRe: working with threads Pin
Hamid_RT14-Apr-06 5:00
Hamid_RT14-Apr-06 5:00 
AnswerRe: working with threads Pin
Le Thanh Cong16-Apr-06 22:02
Le Thanh Cong16-Apr-06 22:02 
Questiondispinterface keyword Pin
Identity Undisclosed14-Apr-06 2:23
Identity Undisclosed14-Apr-06 2:23 
QuestionCOMMAND LINE ARGUMENT Pin
jai_sendme14-Apr-06 2:09
jai_sendme14-Apr-06 2:09 

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.