Dynamically add statis text to a dialog box
I'm tryign to add static text with a value read from a file once a button is pressed, but the text doesn't appear on the dialog window.
the value of i is returned as 1, so create was successful but there's no text.
// TODO: Add your control notification handler code here
/* CEdit myEditBox;
/* CEdit* pEdit = new CEdit;
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
CRect(5, 5, 100, 100), this, 1);*/
// TODO: Add extra initialization here
// Create a child static control that centers its text horizontally.
int i=MyStatic.Create(_T("my static"), WS_CHILD | WS_VISIBLE | SS_NOTIFY,
m_Edit6 = i;