예제 #1
0
BOOL CxDlgIceCommonCombo::OnInitDialog() 
{
	CDialog::OnInitDialog();

	SetWindowText(m_csTitle);
	FillComboBox();
	EnableDisableOK();
	PushHelpId (m_nHelpId);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
예제 #2
0
BOOL CxDlgIceProfile::OnInitDialog() 
{
	CString csTempo,csTitle;
	CDialog::OnInitDialog();

	if (m_pStructProfileInfo->bAlter)
	{	//"Alter Ice Profile %s on %s"
		csTitle.Format(IDS_ICE_ALTER_PROFILE_TITLE,
		(LPCTSTR)m_pStructProfileInfo->ProfileName, 
		(LPCTSTR)m_csVnodeName);
		m_ctrledName.EnableWindow(FALSE);
		PushHelpId (HELPID_ALTER_IDD_ICE_PROFILE);
	}
	else
	{
		GetWindowText(csTempo);
		csTitle.Format(csTempo,m_csVnodeName);
		PushHelpId (HELPID_IDD_ICE_PROFILE);
	}
	SetWindowText(csTitle);
	FillDatabasesUsers();
	m_bAdmin			=	m_pStructProfileInfo->bAdminPriv; 
	m_bSecurityAdmin	=	m_pStructProfileInfo->bSecurityPriv;
	m_bUnitManager		=	m_pStructProfileInfo->bUnitMgrPriv;
	m_bMonitoring		=	m_pStructProfileInfo->bMonitorPriv;
	m_lTimeout			=	m_pStructProfileInfo->ltimeoutms;
	m_csName			=	m_pStructProfileInfo->ProfileName;
	m_csDefUser			=	m_pStructProfileInfo->DefDBUsr.UserAlias;
	UpdateData(FALSE);
	char buffer[20];
	_ltot(LONG_MAX,buffer,10);
	m_ctrledTimeOut.LimitText(lstrlen(buffer));
	m_ctrledName.LimitText(sizeof(m_pStructProfileInfo->ProfileName)-1);

	EnableDisableOK ();

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
예제 #3
0
BOOL CxDlgIceDbUser::OnInitDialog() 
{
	CString csTitle;
	CDialog::OnInitDialog();

	m_ctrlAlias.LimitText(sizeof(m_pStructDbUser->UserAlias)-1);
	m_ctrlName.LimitText(sizeof(m_pStructDbUser->User_Name)-1);
	m_ctrlPassWord.LimitText(sizeof(m_pStructDbUser->Password)-1);
	m_ctrlConfirm.LimitText(sizeof(m_pStructDbUser->Password)-1);
	m_ctrlComment.LimitText(sizeof(m_pStructDbUser->Comment)-1);
	if (m_pStructDbUser->bAlter)
	{
		// "Alter Ice Database User %s on %s"
		csTitle.Format(IDS_ICE_ALTER_DATABASE_USER_TITLE,
			(LPCTSTR)m_pStructDbUser->UserAlias, 
			(LPCTSTR)m_csVirtNodeName);
		m_ctrlAlias.SetWindowText((char *)m_pStructDbUser->UserAlias);
		m_ctrlName.SetWindowText((char *)m_pStructDbUser->User_Name);
		m_ctrlAlias.EnableWindow(FALSE);
		m_ctrlPassWord.SetWindowText((char *)m_pStructDbUser->Password);
		m_ctrlConfirm.SetWindowText((char *)m_pStructDbUser->Password);
		m_ctrlComment.SetWindowText((char *)m_pStructDbUser->Comment);
		PushHelpId (HELPID_ALTER_IDD_ICE_DATABASE_USER);
	}
	else
	{
		CString csFormat;
		GetWindowText(csFormat);
		csTitle.Format(csFormat,m_csVirtNodeName);
		PushHelpId (HELPID_IDD_ICE_DATABASE_USER);
	}
	SetWindowText(csTitle);
	EnableDisableOK ();
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
예제 #4
0
void CxDlgIceDbUser::OnChangeDbuConfirm() 
{
	EnableDisableOK ();
}
예제 #5
0
void CxDlgIceDbUser::OnChangeDbuPassword() 
{
	EnableDisableOK ();
}
예제 #6
0
void CxDlgIceDbUser::OnChangeDbuName() 
{
	EnableDisableOK ();
}
예제 #7
0
void CxDlgIceDbUser::OnChangeDbuAlias() 
{
	EnableDisableOK ();
}
예제 #8
0
void CxDlgIceCommonCombo::OnSelchangeCommonCombobox() 
{
	EnableDisableOK();
}
예제 #9
0
void CxDlgIceProfile::OnSelchangeCpDefDbUser() 
{
	EnableDisableOK ();
}
예제 #10
0
void CxDlgIceProfile::OnChangeCpName() 
{
	EnableDisableOK ();
}