With all of the adjustments, here's what the button looks like, but doesn't make the text appear:
Code:
void CInitialGUIDlg::OnButton2()
{
// TODO: Add your control notification handler code here
CEdit* pEdit = new CEdit;
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
CRect(325, 100,400, 125), this, 1);
CStatic myStatic;
// Create a child static control that centers its text horizontally.
myStatic.Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER,
CRect(10,10,150,50), this);
UpdateData(false);
InvalidateRect(NULL, TRUE);
//CPoint pText(10,10);
}
Maybe there is something wrong with the red code.