Non-Wizard CEdit Control
-
Hello, I have created (in code, not the wizard) an array of CEdit boxes. I would like to be notified when the user has clicked in one of these boxes (and which box they clicked in). How would I get MFC to send me a message? thanks! JennyP
IDC_EDIT1 - IDC_EDITn are in range
ON_CONTROL_RANGE(BN_CLICKED, IDC_EDIT1, IDC_EDITn, OnEditRangeClick )
afx_msg void OnEditRangeClick(UINT uID)ÿVOTD:19 "My dear brothers, take note of this: Everyone should be quick to listen, slow to speak and slow to become angry, 20for man's anger does not bring about the righteous life that God desires." - Jam 1:19
-
IDC_EDIT1 - IDC_EDITn are in range
ON_CONTROL_RANGE(BN_CLICKED, IDC_EDIT1, IDC_EDITn, OnEditRangeClick )
afx_msg void OnEditRangeClick(UINT uID)ÿVOTD:19 "My dear brothers, take note of this: Everyone should be quick to listen, slow to speak and slow to become angry, 20for man's anger does not bring about the righteous life that God desires." - Jam 1:19
-
Thanks for the reply... So in my code, the "IDC_EDIT1" would be the 2200 (the control's nID)?
m_CEAvailable[i].Create(EditStyle | WS_TABSTOP, CERect, this, 2200+i);
JennyPYes! but I would advise you to define IDC_EDIT1 (or whatever the name you like) and use it instead, cleaner! I am in YYY:-D