I have nine text fields, named IDC_COMBO1 to IDC_COMBO9 ( values are consecutive ).
I want to obtain the values of each and make one string.
I tried this:
// Loop through all COMBO controls,
// build final string.
for (int i = IDC_COMBO1; i <= IDC_COMBO9; ++i)
GetDlgItemText(gl_hWnd, i, szComboBuffer, 2);
I chose 2 as last parameter because they might enter 2 digits in the text field.
If it worked as intended, szComboBuffer would hold the final string.
I am fairly new to this. Can someone help me finish this up? Thanks.