Пример #1
0
BOOL CAlarmInputDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	g_SetWndStaticText(this);
	// TODO: Add extra initialization here
	ConvertComboBox(m_ctlAlarmWeek);
	ConvertComboBox(m_ctlAlarmType);

	m_chnAlarmOut.Create(IDD_DIALOG_CHN, this);
	m_chnAlarmOut.Attach(IDC_STATIC_ALARMOUT, this);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Пример #2
0
BOOL CConfigRecord::OnInitDialog() 
{
	CDialog::OnInitDialog();
	g_SetWndStaticText(this);
	// TODO: Add extra initialization here
	ConvertComboBox(m_ctlRecordWeek);
	int nIndex = m_ctlRecordType.AddString("Main Data stream");
	m_ctlRecordType.SetItemData(nIndex, 0);
	nIndex = m_ctlRecordType.AddString("Substream_1");
	m_ctlRecordType.SetItemData(nIndex, 1);
	nIndex = m_ctlRecordType.AddString("Substream_2");
	m_ctlRecordType.SetItemData(nIndex, 2);
	nIndex = m_ctlRecordType.AddString("Substream_3");
	m_ctlRecordType.SetItemData(nIndex, 3);
	ConvertComboBox(m_ctlRecordType);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Пример #3
0
BOOL CConfigComm::OnInitDialog() 
{
	CDialog::OnInitDialog();
	g_SetWndStaticText(this);
	// TODO: Add extra initialization here
	ConvertComboBox(m_ctlParity485);
	ConvertComboBox(m_ctlCommParity);

	m_ctlStopBit485.ResetContent();

	int index = m_ctlStopBit485.AddString("1");
	m_ctlStopBit485.SetItemData(index, 0);

	index = m_ctlStopBit485.AddString("1.5");
	m_ctlStopBit485.SetItemData(index, 1);

	index = m_ctlStopBit485.AddString("2");
	m_ctlStopBit485.SetItemData(index, 2);

	m_ctlStopBit485.SetCurSel(-1);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}