Edit<输入框>
1.(CWnd *)GetDlgItem(IDC_EDIT_1))->SetWindowText("0");
2.int n=GetDlgItemInt(IDC_EDIT_1, NULL,true);
3.(CWnd *)GetDlgItem(IDC_EDIT_1))->GetWindowText(cs);
Combox<下拉框>
1.((CComboBox *)GetDlgItem(IDC_COMB_1))->SetCurSel(1);
2. GetDlgItemText(IDC_COMB_1, cs, 50);
3.int i=m_COM.GetCurSel();
m_COM.GetLBText(i,cs);
4.m_COM.AddString(cs);m_COM.DeleteString(0);m_COM.SetCurSel(0);
Radio<单选按钮>
1.((CButton *)GetDlgItem(IDC_RADIO_1))->SetCheck(true);
2.if (((CButton *)GetDlgItem(IDC_RADIO_1))->GetCheck()) {}
3.((CButton *)GetDlgItem(IDC_RADIO_1))->SetCheck(true);
List Control<列表>
1.m_list2.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES); m_list2.InsertColumn(0,"TagID",LVCFMT_LEFT,60);
m_list2.InsertColumn(1,"TagType",LVCFMT_CENTER,120);
m_list2.InsertItem(i,cs1);
m_list2.SetItemText(i,1,cs2);
2.if(m_list2.GetSelectedItem()!=-1)
{
int i=m_list2.GetSelectionMark();
cs=m_list2.GetItemText(i,0);
}
3.int i=m_List2.GetItemCount();
4.m_list2.DeleteItem(i);m_list2.DeleteAllItems();
ListBox<列表框>
1.((CListBox *)listBox)->InsertString(0, str);
Button<按钮>
1.((CWnd *)GetDlgItem(IDC_BUTTON_1))->ShowWindow(true);
2.((CWnd *)GetDlgItem(IDC_BUTTON_1))->EnableWindow(true);
posted on 2007-06-04 23:18
乔栋 阅读(507)
评论(0) 编辑 收藏 引用 所属分类:
C++的健身房