Click here to Skip to main content
15,909,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Edit control in vc++ Pin
Hamid_RT22-May-06 19:59
Hamid_RT22-May-06 19:59 
GeneralRe: Edit control in vc++ Pin
Sarath C22-May-06 20:14
Sarath C22-May-06 20:14 
GeneralRe: Edit control in vc++ Pin
Hamid_RT22-May-06 20:25
Hamid_RT22-May-06 20:25 
GeneralRe: Edit control in vc++ [modified] Pin
nitin_b1222-May-06 20:45
nitin_b1222-May-06 20:45 
GeneralRe: Edit control in vc++ Pin
Hamid_RT22-May-06 20:55
Hamid_RT22-May-06 20:55 
GeneralRe: Edit control in vc++ Pin
nitin_b1222-May-06 21:06
nitin_b1222-May-06 21:06 
GeneralRe: Edit control in vc++ Pin
Hamid_RT22-May-06 21:15
Hamid_RT22-May-06 21:15 
AnswerRe: Edit control in vc++ Pin
Sarath C22-May-06 20:08
Sarath C22-May-06 20:08 
if u want to update the data on keypress
Map the key press of the input text box ( say IDC_TEXTIN)
else
do the following on button click or the operation u want to update the text boxes

1. Keep the length of IDC_TEXTOUT when u update the text for the first time.

CString strTextIn;
CString strTextOut;
GetDlgItemText(IDC_EDITIN,strTextIn);
GetDlgItemText(IDC_EDITOUT,strTextOut);
// take the fixed amount of string
CString strFixed = strTextOut.Left(m_nLength);
strTextIn.Left(m_nLength);
// Create a new string
strTextOut = strFixed+strTextIn;
SetDlgItemText(IDC_TEXTOUT,strTextOut);

do the needful assertion checks

SaRath
AnswerRe: Edit control in vc++ Pin
Steve Echols22-May-06 20:41
Steve Echols22-May-06 20:41 
AnswerRe: Edit control in vc++ Pin
Ganesh_T22-May-06 21:04
Ganesh_T22-May-06 21:04 
Questionhow to get the source of firfox Pin
jerry1111122-May-06 19:46
jerry1111122-May-06 19:46 
AnswerRe: how to get the source of firfox Pin
kakan22-May-06 19:53
professionalkakan22-May-06 19:53 
AnswerRe: how to get the source of firfox Pin
Laxman Auti22-May-06 20:44
Laxman Auti22-May-06 20:44 
GeneralRe: how to get the source of firfox Pin
jerry1111122-May-06 21:59
jerry1111122-May-06 21:59 
AnswerRe: how to get the source of firfox Pin
Laxman Auti22-May-06 22:53
Laxman Auti22-May-06 22:53 
QuestionReading BYTE* Pin
satsumatable22-May-06 19:44
satsumatable22-May-06 19:44 
AnswerRe: Reading BYTE* Pin
kakan22-May-06 19:51
professionalkakan22-May-06 19:51 
GeneralRe: Reading BYTE* Pin
satsumatable22-May-06 19:59
satsumatable22-May-06 19:59 
GeneralRe: Reading BYTE* Pin
Sarath C22-May-06 20:18
Sarath C22-May-06 20:18 
GeneralRe: Reading BYTE* [modified] Pin
sunit522-May-06 20:21
sunit522-May-06 20:21 
GeneralRe: Reading BYTE* Pin
Maxwell Chen22-May-06 20:24
Maxwell Chen22-May-06 20:24 
GeneralRe: Reading BYTE* Pin
satsumatable22-May-06 20:31
satsumatable22-May-06 20:31 
GeneralRe: Reading BYTE* Pin
Maxwell Chen22-May-06 20:39
Maxwell Chen22-May-06 20:39 
GeneralRe: Reading BYTE* Pin
satsumatable22-May-06 20:54
satsumatable22-May-06 20:54 
GeneralRe: Reading BYTE* Pin
Maxwell Chen22-May-06 21:03
Maxwell Chen22-May-06 21:03 

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.