This CodeProject article provides comprehensive overview:
Using the CListBox control[
^].
Pay attention for the notification message
LBN_SELCHANGE
in the section "Handling CListBox Messages".
Please see:
LBN_SELCHANGE notification code (Windows)[
^].
As to the edit box, you can use the class
CEdit
. Using is the way you probably does not need additional explanations:
CEdit Class[
^].
Basically, this is all you need to know.
Good luck.
—SA