Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Edit Control MFC vc++ Pin
Richard MacCutchan23-Sep-19 20:56
mveRichard MacCutchan23-Sep-19 20:56 
AnswerRe: Edit Control MFC vc++ Pin
_Flaviu23-Sep-19 23:13
_Flaviu23-Sep-19 23:13 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 1:04
Member 1457555624-Sep-19 1:04 
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 1:23
_Flaviu24-Sep-19 1:23 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 1:36
Member 1457555624-Sep-19 1:36 
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 1:57
_Flaviu24-Sep-19 1:57 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 2:01
Member 1457555624-Sep-19 2:01 
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 2:18
_Flaviu24-Sep-19 2:18 
In header:
C++
public:
	//{{AFX_DATA(MyDlg)
	enum { IDD = IDD_TEST_FORM };
	CEdit	m_Edit1;
	CString	m_sEdit1;
	//}}AFX_DATA

in cpp:
C++
void MyDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(MyDlg)
	DDX_Control(pDX, IDC_EDIT1, m_Edit1);
	DDX_Text(pDX, IDC_EDIT1, m_sEdit1);
	//}}AFX_DATA_MAP
}

so you have the value of edit control inside of m_sEdit1.
Example:
C++
void MyDlg::OnEnchangeEdit()
{
   updateData(FALSE);
   Function(1st parameter, m_sEdit1);
}

GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 2:51
Member 1457555624-Sep-19 2:51 
QuestionRe: Edit Control MFC vc++ Pin
David Crow24-Sep-19 4:14
David Crow24-Sep-19 4:14 
AnswerRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 6:02
Member 1457555624-Sep-19 6:02 
AnswerRe: Edit Control MFC vc++ Pin
Gerry Schmitz24-Sep-19 7:40
mveGerry Schmitz24-Sep-19 7:40 
QuestionList control view and button MFC vc++ Pin
Member 1457555623-Sep-19 6:41
Member 1457555623-Sep-19 6:41 
AnswerRe: List control view and button MFC vc++ Pin
Victor Nijegorodov23-Sep-19 7:02
Victor Nijegorodov23-Sep-19 7:02 
GeneralRe: List control view and button MFC vc++ Pin
Member 1457555623-Sep-19 7:18
Member 1457555623-Sep-19 7:18 
GeneralRe: List control view and button MFC vc++ Pin
Victor Nijegorodov23-Sep-19 7:55
Victor Nijegorodov23-Sep-19 7:55 
GeneralRe: List control view and button MFC vc++ Pin
Member 1457555623-Sep-19 8:00
Member 1457555623-Sep-19 8:00 
QuestionHow to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 1:15
Member 1457555623-Sep-19 1:15 
AnswerRe: How to validate input entered in Edit control MFC vc++ Pin
_Flaviu23-Sep-19 3:22
_Flaviu23-Sep-19 3:22 
GeneralRe: How to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 6:25
Member 1457555623-Sep-19 6:25 
AnswerRe: How to validate input entered in Edit control MFC vc++ Pin
Maximilien23-Sep-19 3:32
Maximilien23-Sep-19 3:32 
GeneralRe: How to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 6:24
Member 1457555623-Sep-19 6:24 
AnswerRe: How to validate input entered in Edit control MFC vc++ Pin
Victor Nijegorodov23-Sep-19 3:39
Victor Nijegorodov23-Sep-19 3:39 
GeneralRe: How to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 6:29
Member 1457555623-Sep-19 6:29 
Questionpdf995.ini in Program Files (x86) Pin
Erich Ruth19-Sep-19 9:24
Erich Ruth19-Sep-19 9:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.