Click here to Skip to main content
14,768,426 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: X button in the Dialog MFC vc++ Pin
Member 1457555624-Sep-19 7:52
MemberMember 1457555624-Sep-19 7:52 
SuggestionRe: X button in the Dialog MFC vc++ Pin
David Crow24-Sep-19 16:39
MemberDavid Crow24-Sep-19 16:39 
AnswerRe: X button in the Dialog MFC vc++ Pin
Maximilien24-Sep-19 5:19
MemberMaximilien24-Sep-19 5:19 
AnswerRe: X button in the Dialog MFC vc++ Pin
David Crow24-Sep-19 7:06
MemberDavid Crow24-Sep-19 7:06 
QuestionEdit Control MFC vc++ Pin
Member 1457555623-Sep-19 20:47
MemberMember 1457555623-Sep-19 20:47 
AnswerRe: Edit Control MFC vc++ Pin
Richard MacCutchan23-Sep-19 21:56
mveRichard MacCutchan23-Sep-19 21:56 
AnswerRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 0:13
Member_Flaviu24-Sep-19 0:13 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 2:04
MemberMember 1457555624-Sep-19 2:04 
in .h file :
afx_msg void MyDlg::OnEnChangeEdit();


in .cpp file :
BEGIN_MESSAGE_MAP(MyDlg, CDialogEx)
      ON_EN_CHANGE(IDC_EDIT2, &MedicationDlg::OnEnChangeEdit)
END_MESSAGE_MAP()


void MyDlg :: OnEnchangeEdit()
{
   CString temp;
   //could you give some some direction on how to get the text entered in the edit control
   // Should I use the control value variable of the edit control to save the input
   // I am confused here, I would like some direction. Thanks
   updateData(TRUE);
   temp = m_editvariable;
    
   Function(1st parameter, temp) // this function will check the text entered in the edit control, with the default value and  display appropriate message 
}


Thanks.
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 2:23
Member_Flaviu24-Sep-19 2:23 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 2:36
MemberMember 1457555624-Sep-19 2:36 
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 2:57
Member_Flaviu24-Sep-19 2:57 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 3:01
MemberMember 1457555624-Sep-19 3:01 
GeneralRe: Edit Control MFC vc++ Pin
_Flaviu24-Sep-19 3:18
Member_Flaviu24-Sep-19 3:18 
GeneralRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 3:51
MemberMember 1457555624-Sep-19 3:51 
QuestionRe: Edit Control MFC vc++ Pin
David Crow24-Sep-19 5:14
MemberDavid Crow24-Sep-19 5:14 
AnswerRe: Edit Control MFC vc++ Pin
Member 1457555624-Sep-19 7:02
MemberMember 1457555624-Sep-19 7:02 
AnswerRe: Edit Control MFC vc++ Pin
Gerry Schmitz24-Sep-19 8:40
mveGerry Schmitz24-Sep-19 8:40 
QuestionList control view and button MFC vc++ Pin
Member 1457555623-Sep-19 7:41
MemberMember 1457555623-Sep-19 7:41 
AnswerRe: List control view and button MFC vc++ Pin
Victor Nijegorodov23-Sep-19 8:02
MemberVictor Nijegorodov23-Sep-19 8:02 
GeneralRe: List control view and button MFC vc++ Pin
Member 1457555623-Sep-19 8:18
MemberMember 1457555623-Sep-19 8:18 
GeneralRe: List control view and button MFC vc++ Pin
Victor Nijegorodov23-Sep-19 8:55
MemberVictor Nijegorodov23-Sep-19 8:55 
GeneralRe: List control view and button MFC vc++ Pin
Member 1457555623-Sep-19 9:00
MemberMember 1457555623-Sep-19 9:00 
QuestionHow to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 2:15
MemberMember 1457555623-Sep-19 2:15 
AnswerRe: How to validate input entered in Edit control MFC vc++ Pin
_Flaviu23-Sep-19 4:22
Member_Flaviu23-Sep-19 4:22 
GeneralRe: How to validate input entered in Edit control MFC vc++ Pin
Member 1457555623-Sep-19 7:25
MemberMember 1457555623-Sep-19 7:25 

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.