void CCO2_NodeView::OnInitialUpdate()
{
    CFormView::OnInitialUpdate();

    // TODO: 在此添加专用代码和/或调用基类
    Initial_List();
    
}
BOOL CBacnetCustomerDigitalRange::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	Initial_List();
	PostMessage(WM_REFRESH_BAC_CUSTOMER_DIGITAL_RANGE_LIST,NULL,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL BacnetController::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	Initial_List();
	PostMessage(WM_REFRESH_BAC_CONTROLLER_LIST,NULL,NULL);
	SetTimer(1,CONTROLLOR_REFRESH_TIME,NULL);
	// TODO:  Add extra initialization here

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetUserConfig::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	m_slected_item = -1;	//初始化时 没有选择,从0 开始选择	;
	ok_button_stage = 0;
	// TODO:  Add extra initialization here
	Initial_List();
	Enable_Window_Stage(HIDE_ALL);
	show_user_list_window = false;	//避免点击左边list的时候 也弹出 配置对话框,只有在 点userlist 按键时弹出;
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetTstat::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	
	Initial_List();
	PostMessage(WM_REFRESH_BAC_TSTAT_LIST,NULL,NULL);
	ShowWindow(FALSE);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Example #6
0
BOOL CBacnetProgram::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	Initial_List();

	PostMessage(WM_REFRESH_BAC_PROGRAM_LIST,NULL,NULL);
	// TODO:  Add extra initialization here


	//RegisterHotKey(GetSafeHwnd(),KEY_INSERT,NULL,VK_INSERT);//Insert键
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL BacnetScreen::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	SetWindowTextW(_T("Graphic"));
	
	Initial_List();
	HICON m_hIcon = AfxGetApp()->LoadIcon(IDI_ICON_DEFAULT_GRAPHIC);
	SetIcon(m_hIcon,TRUE);
	PostMessage(WM_REFRESH_BAC_SCREEN_LIST,NULL,NULL);

	ShowWindow(FALSE);
//	RegisterHotKey(GetSafeHwnd(),KEY_INSERT,NULL,VK_INSERT);//F2键
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Example #8
0
BOOL CBacnetVariable::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	Initial_List();	//Initial the list of Variable,read from device;
	PostMessage(WM_REFRESH_BAC_VARIABLE_LIST,NULL,NULL);

	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_REFRESH);
	((CButton *)GetDlgItem(IDC_BUTTON_VARIABLE_READ))->SetIcon(hIcon);	
	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_OK);
	((CButton *)GetDlgItem(IDC_BUTTON_VARIABLE_APPLY))->SetIcon(hIcon);
	SetTimer(1,BAC_LIST_REFRESH_TIME + 5000,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetProgram::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	Initial_List();

	PostMessage(WM_REFRESH_BAC_PROGRAM_LIST,NULL,NULL);
	// TODO:  Add extra initialization here

	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_REFRESH);
	((CButton *)GetDlgItem(IDC_BUTTON_PROGRAM_READ))->SetIcon(hIcon);	
	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_OK);
	((CButton *)GetDlgItem(IDC_BUTTON_PROGRAM_APPLY))->SetIcon(hIcon);

	//RegisterHotKey(GetSafeHwnd(),KEY_INSERT,NULL,VK_INSERT);//Insert键
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetInput::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	m_input_item_info.SetWindowTextW(_T(""));
	m_input_item_info.textColor(RGB(0,0,255));
	//m_static.bkColor(RGB(0,255,255));
	m_input_item_info.setFont(20,14,NULL,_T("Arial"));

	// TODO:  Add extra initialization here
	Initial_List();
	PostMessage(WM_REFRESH_BAC_INPUT_LIST,NULL,NULL);
   

	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
void CCO2_View::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	Initial_List();

	HICON hIcon = NULL; 
	//hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_INPUT);
	//((CButton *)GetDlgItem(IDC_BUTTON_CM5_ADVANCE))->SetIcon(hIcon);
	HINSTANCE hInstResource    = NULL; 
	hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(IDI_ICON_REFRESH), RT_GROUP_ICON); 
	hIcon = (HICON)::LoadImage(hInstResource, MAKEINTRESOURCE(IDI_ICON_REFRESH), IMAGE_ICON, 32, 32, 0); 
	((CButton *)GetDlgItem(IDC_BTN_CO2_REFRESH))->SetIcon(hIcon);
	RefreshThread = NULL;
	//CO2_Thread=AfxBeginThread(_ReadCo2MultiRegisters,this,THREAD_PRIORITY_NORMAL,0,0,NULL ); 
	//CO2_Thread->SuspendThread();

	// TODO: Add your specialized code here and/or call the base class
}
BOOL CBacnetScheduleTime::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	Initial_List();
	// TODO:  Add extra initialization here
#if 0
	g_invoke_id = GetPrivateData(g_bac_instance,READTIMESCHEDULE_T3000,weekly_list_line,weekly_list_line,WEEKLY_SCHEDULE_SIZE);
	if(g_invoke_id>=0)
	{
		CString temp_cs_show;
		temp_cs_show.Format(_T("Task ID = %d. Read weekly schedule time from item %d "),g_invoke_id,weekly_list_line);
		Post_Invoke_ID_Monitor_Thread(MY_INVOKE_ID,g_invoke_id,this->m_hWnd,temp_cs_show);
	}
#endif
	PostMessage(WM_REFRESH_BAC_SCHEDULE_LIST,NULL,NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetAlarmLog::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	Initial_List();


	if(AlarmWindow_Window == NULL)
	{
		AlarmWindow_Window = new CBacnetAlarmWindow;
		AlarmWindow_Window->Create(IDD_DIALOG_BACNET_ALARM_WINDOW,this);	
	}

	AlarmWindow_Window->ShowWindow(SW_SHOW);
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetOutput::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	m_output_item_info.SetWindowTextW(_T(""));
	m_output_item_info.textColor(RGB(0,0,255));
	//m_static.bkColor(RGB(0,255,255));
	m_output_item_info.setFont(20,14,NULL,_T("Arial"));

	Initial_List();
	PostMessage(WM_REFRESH_BAC_OUTPUT_LIST,NULL,NULL);
	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_REFRESH);
	((CButton *)GetDlgItem(IDC_BUTTON_OUTPUT_READ))->SetIcon(hIcon);	
	hIcon   = AfxGetApp()->LoadIcon(IDI_ICON_OK);
	((CButton *)GetDlgItem(IDC_BUTTON_OUTPUT_APPLY))->SetIcon(hIcon);
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CBacnetAlarmLog::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	SetWindowTextW(_T("ALARM"));
	
	Initial_List();
	HICON m_hIcon = AfxGetApp()->LoadIcon(IDI_ICON_DEFAULT_ALARM);
	SetIcon(m_hIcon,TRUE);

	if(AlarmWindow_Window == NULL)
	{
		AlarmWindow_Window = new CBacnetAlarmWindow;
		AlarmWindow_Window->Create(IDD_DIALOG_BACNET_ALARM_WINDOW,this);	
	}

	AlarmWindow_Window->ShowWindow(SW_HIDE);
	SetTimer(1,BAC_LIST_REFRESH_TIME,NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}