Home > Software engineering >  MFC edit box does not display the text (C)
MFC edit box does not display the text (C)

Time:10-08

 a is my interface, to be behind the time in the Edit box shows the current time, set a breakpoint debugging when did take to the car. The begintime value, but it is in the interface is not shown, for help, use the Edit control

CodePudding user response:

The edit box set CEdit curtime variable
The car. This is cstrings begintime
Curtime. SetWindowText (car. Begintime); Try

CodePudding user response:

The UpdateData (TRUE); Is removed (as press OK)
The UpdateData (FALSE); Is deposit, should be placed after the '='!

CodePudding user response:

Use the UpdateData (FALSE)
Then edit box should be associated with a variable cstrings
Use Settext, don't use CEdit controls

CodePudding user response:

Curtime this variable is edit box CEdit type, should be a so called: curtime. SetWindowText (... )

CodePudding user response:

I can't, I used the curtime. SetwindowText (car. Begintime) or not...

CodePudding user response:

In the final with the UpdateData (FALSE)

CodePudding user response:

If you want to use the UpdateData function is binding object, usually with the SetWindowText is achievable
  • Related