1 year ago
#219499
Tomasz
Windows messes up data put in TextBox Control
This is unbelievable to me, and I do not know how to work around this problem!
I try to put [4]0.004
into an EditBox Control and what appears in the EditBox is 0.004[4]
. Same result is obtained with parenthesis and braces. Then with -4-0.004
I get 4-0.004-
. Here is simplified code that reproducers the problem:
void CMyDlg::DoDataExchange(CDataExchange* pDX)
{
CString test = _T("[4]0.004");
DDX_Text(pDX, IDC_TX_CELL_MAX_V, test);
}
The EditBox control is defined in the .rc file as:
EDITTEXT IDC_TX_CELL_MAX_V,100,121,58,15,ES_CENTER | ES_READONLY | NOT WS_BORDER,WS_EX_RTLREADING | WS_EX_STATICEDGE
And Here is the image on the screen:
How do I work around this problem?
visual-c++
visual-studio-2013
mfc
0 Answers
Your Answer