I have "translated" this line, where I use the ComboBox:
Code:
CComboBox* box1 = ((CComboBox*)GetDlgItem(IDC_COMBO1));
to this, because I have to use the CSpinButtonCtrl:
Code:
CSpinButtonCtrl *spin1 = (CSpinButtonCtrl*)GetDlgItem(IDC_SPIN1);
By now everything is good, but I have a problem in that line:
Code:
CText* key = new CText(&usedAlphabet);
key->addSymbol((CSymbol*)box1->GetItemDataPtr(box1->GetCurSel()));
I have to translate this line
Code:
key->addSymbol((CSymbol*)box1->GetItemDataPtr(box1->GetCurSel()));
using the CSpinButtonCtrl, but I'm not able.
I thought something like this:
Code:
key->addSymbol((CSymbol*)spin1->(and here?????)
I don't know how can I change the last line using the CSpinButtonCtrl, cause I need to use it!
Someone could help me?