예제 #1
0
long CuDlgReplicationStaticPageCollision::OnPropertiesChange(WPARAM wParam, LPARAM lParam)
{
	CaIpmProperty* pProperty = (CaIpmProperty*)lParam;
	if (!pProperty)
		return 0;
	if (m_pFrameLayout && IsWindow (m_pFrameLayout->m_hWnd))
	{
		CvReplicationPageCollisionViewLeft* pView = (CvReplicationPageCollisionViewLeft*)m_pFrameLayout->GetLeftPane();
		ASSERT (pView);
		if (pView)
		{
			CTreeCtrl& treeCtrl = pView->GetTreeCtrl();
			treeCtrl.SendMessage (WM_SETFONT, (WPARAM)pProperty->GetFont(), MAKELPARAM(TRUE, 0));
		}

		CvReplicationPageCollisionViewRight* pView2 = (CvReplicationPageCollisionViewRight*)m_pFrameLayout->GetRightPane();
		ASSERT (pView2);
		if (pView2)
		{
			pView2->SendMessage(WMUSRMSG_CHANGE_SETTING, wParam, lParam);
		}

	}
	return 0;
}
예제 #2
0
long CvIpmLeft::OnSettingChange(WPARAM wParam, LPARAM lParam)
{
	UINT nMask = (UINT)wParam;
	CaIpmProperty* pProperty = (CaIpmProperty*)lParam;

	if ((nMask & IPMMASK_FONT) && pProperty && pProperty->GetFont())
	{
		CTreeCtrl& treeCtrl = GetTreeCtrl();
		treeCtrl.SendMessage (WM_SETFONT, (WPARAM)pProperty->GetFont(), MAKELPARAM(TRUE, 0));
	}
	return 0;
}
예제 #3
0
void CIpmCtrl::ConstructPropertySet(CaIpmProperty& property)
{
	property.SetTimeout(m_timeOut); 
	property.SetRefreshFrequency(m_refreshFrequency);
	property.SetRefreshActivated(m_activateRefresh);
	property.SetGrid(m_showGrid);
	property.SetUnit(m_unit);
	property.SetMaxSession(m_maxSession);
	CFontHolder& fontHolder = InternalGetFont();
	property.SetFont(fontHolder.GetFontHandle()); 
}