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.Code:void CInitialGUIDlg::OnButton6() { // TODO: Add your control notification handler code here /* CEdit myEditBox; myEditBox.Create(); */ /* 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 CCustom MyStatic; // Create a child static control that centers its text horizontally. int i=MyStatic.Create(_T("my static"), WS_CHILD | WS_VISIBLE | SS_NOTIFY, CRect(200,200,150,50), this,1); m_Edit6 = i; UpdateData(false); }



LinkBack URL
About LinkBacks


