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



LinkBack URL
About LinkBacks


