コード例 #1
0
void CGuiBarOffice::OnTimer(UINT nIDEvent)
{
	// TODO: Add your message handler code here and/or call default
	KillTimer(100);
	UpdateChilds();
	CGuiControlBar::OnTimer(nIDEvent);
}
コード例 #2
0
void CGuiBarOffice::OnSize(UINT nType, int cx, int cy)
{
	
	UpdateChilds();
	CGuiControlBar::OnSize(nType, cx, cy);
	//nunca utilice el timer 1 porque es utilizado por la ventana padre
	//para manejar los botones de control
	SetTimer(100,100,NULL);
	// TODO: Add your message handler code here
}
コード例 #3
0
void CXTPPropertyGridItemPoint::SetPoint(CPoint pt)
{
	m_ptValue = pt;

	if (m_pBindPoint)
	{
		*m_pBindPoint = m_ptValue;
	}

	CXTPPropertyGridItem::SetValue(PointToString(m_ptValue));
	UpdateChilds();
}
コード例 #4
0
void CXTPPropertyGridItemSize::SetSize(CSize size)
{
	m_szValue = size;

	if (m_pBindSize)
	{
		*m_pBindSize = m_szValue;
	}

	CXTPPropertyGridItem::SetValue(SizeToString(m_szValue));
	UpdateChilds();
}
コード例 #5
0
void CXTPPropertyGridItemPoint::OnAddChildItem()
{
	if (m_pItemX && m_pItemY)
		return;

	m_pItemX = (CItemX*)AddChildItem(new CItemX(_T("X")));
	m_pItemY = (CItemY*)AddChildItem(new CItemY(_T("Y")));

	UpdateChilds();

	m_pItemX->SetDefaultValue(m_pItemX->GetValue());
	m_pItemY->SetDefaultValue(m_pItemY->GetValue());
}
コード例 #6
0
void CXTPPropertyGridItemSize::OnAddChildItem()
{
	if (m_pItemHeight && m_pItemWidth)
		return;

	m_pItemWidth = (CXTPPropertyGridItemSizeWidth*)AddChildItem(new CXTPPropertyGridItemSizeWidth(_T("Width")));
	m_pItemHeight = (CXTPPropertyGridItemSizeHeight*)AddChildItem(new CXTPPropertyGridItemSizeHeight(_T("Height")));

	UpdateChilds();

	m_pItemWidth->SetDefaultValue(m_pItemWidth->GetValue());
	m_pItemHeight->SetDefaultValue(m_pItemHeight->GetValue());
}
コード例 #7
0
void CXTPPropertyGridItemFlags::SetFlags(int nValue)
{
	m_nValue = nValue;

	if (m_pBindFlags)
	{
		*m_pBindFlags = nValue;
	}

	UpdateChilds();

	CXTPPropertyGridItem::SetValue(GetFlagsString());
}
コード例 #8
0
void CXTPPropertyGridItemFlags::OnConstraintsChanged()
{
	GetChilds()->Clear();

	CXTPPropertyGridItemConstraints* pConstraints = GetConstraints();

	int i;

	for (i = 0; i < pConstraints->GetCount(); i++)
	{
		AddChildItem(new CXTPPropertyGridItemFlag(pConstraints->GetAt(i), (int)pConstraints->GetConstraintAt(i)->m_dwData));
	}
	UpdateChilds();
	m_strDefaultValue = m_strValue = GetFlagsString();

	CXTPPropertyGridItems* pItems = GetChilds();
	for (i = 0; i < pItems->GetCount(); i++)
	{
		CXTPPropertyGridItemFlag* pItem = (CXTPPropertyGridItemFlag*)pItems->GetAt(i);
		pItem->SetDefaultValue(pItem->GetValue());
	}

}
コード例 #9
0
void CXTPPropertyGridItemFlags::SetReadOnly(BOOL bReadOnly)
{
	CXTPPropertyGridItem::SetReadOnly(bReadOnly);

	UpdateChilds();
}
コード例 #10
0
void CGuiBarOffice::OnWindowPosChanged(WINDOWPOS* lpwndpos)
{
	UpdateChilds();
	CGuiControlBar::OnWindowPosChanged(lpwndpos);
	// TODO: Add your message handler code here
}