Реферат: Системне програмне забезпечення С
CButton*cbpr3=(CButton*)GetDlgItem(IDC_RADIO3);
cbpr1->SetCheck(radio1);
cbpr2->SetCheck(radio2);
cbpr3->SetCheck(radio3);
return TRUE; */
{
char temp1[10];
CDialog::OnInitDialog();
CListBox *d=(CListBox*)GetDlgItem(IDC_LIST2);
for(int i1=0;i1<ind;i1++)
{
sprintf(temp1,"%d",i1);
d->AddString(temp1);
}
char temp2[10];
CDialog::OnInitDialog();
CListBox *k=(CListBox*)GetDlgItem(IDC_LIST3);
for(int i2=0;i2<ind;i2++)
{
sprintf(temp2,"%d",i2);
k->AddString(temp2);
}
return TRUE;
}
void CMyDialog::OnLIST2()
{
//here we are getting list pointer with indentifier IDC_LIST1
CListBox* lbd=(CListBox*)GetDlgItem(IDC_LIST2);
//after obtaining the pointer,we are defining index of selected element