Home > Software engineering >  MFC in two text box displays the contents of a one-to-one correspondence should be how
MFC in two text box displays the contents of a one-to-one correspondence should be how

Time:09-26

Transformed to input some key words, according to the second text box, not of the same content,

There are two text boxes edit1, for example, edit2.
When I enter in the edit "I'm zhang, he is li si"
Also shown in edit2 "I am a small three, he was a small four"

Is said to be using the map [" zhang SAN "]="little three"; Map [" bill "]="small four"?

I am beginner, just say simple point=-=

CodePudding user response:

 didn't taught

CodePudding user response:

You can train of thought, before and after using CMap storage mapping relationship of string, and then to look for in the first string, replace,

CodePudding user response:

In response to the first Edit the EN_CHANGE news, inside find have to replace, replace the replace

Finally SetDlgItemText (the second Edit ID value, replacement cstrings)

CodePudding user response:

Using CMapStringToString

CodePudding user response:

"Cpp collection classes. Rar"
http://download.csdn.net/download/schlafenhamster/5023227
"Microsoft a collection class demo: CStringList TypedPtrList"

CodePudding user response:

CodePudding user response:

Upstairs you several means of

CodePudding user response:

In the baidu the MFC CMapStringToString usage

CodePudding user response:

Directly in the response function is complete, a CEdit response function, modify the value of another case
  • Related