04-08-2013, 04:43 AM
Let SendMessage send control id in wParam, and SetDlgItemText use wParam.
SendMessage hDlg WM_APP 4 "text is in text box 1"
SendMessage hDlg WM_APP 7 "text is in text box 2"
SetDlgItemText hDlg wParam F"{lParam%%s}"
SendMessage hDlg WM_APP 4 "text is in text box 1"
SendMessage hDlg WM_APP 7 "text is in text box 2"
SetDlgItemText hDlg wParam F"{lParam%%s}"