void CGuiBarOffice::OnTimer(UINT nIDEvent) { // TODO: Add your message handler code here and/or call default KillTimer(100); UpdateChilds(); CGuiControlBar::OnTimer(nIDEvent); }
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 }
void CXTPPropertyGridItemPoint::SetPoint(CPoint pt) { m_ptValue = pt; if (m_pBindPoint) { *m_pBindPoint = m_ptValue; } CXTPPropertyGridItem::SetValue(PointToString(m_ptValue)); UpdateChilds(); }
void CXTPPropertyGridItemSize::SetSize(CSize size) { m_szValue = size; if (m_pBindSize) { *m_pBindSize = m_szValue; } CXTPPropertyGridItem::SetValue(SizeToString(m_szValue)); UpdateChilds(); }
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()); }
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()); }
void CXTPPropertyGridItemFlags::SetFlags(int nValue) { m_nValue = nValue; if (m_pBindFlags) { *m_pBindFlags = nValue; } UpdateChilds(); CXTPPropertyGridItem::SetValue(GetFlagsString()); }
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()); } }
void CXTPPropertyGridItemFlags::SetReadOnly(BOOL bReadOnly) { CXTPPropertyGridItem::SetReadOnly(bReadOnly); UpdateChilds(); }
void CGuiBarOffice::OnWindowPosChanged(WINDOWPOS* lpwndpos) { UpdateChilds(); CGuiControlBar::OnWindowPosChanged(lpwndpos); // TODO: Add your message handler code here }