예제 #1
0
void CCircCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	if (pPX->GetVersion() == (DWORD)MAKELONG(_wVerMinor, _wVerMajor))
	{
		PX_Bool(pPX, _T("CircleShape"), m_circleShape, TRUE);
		PX_Short(pPX, _T("CircleOffset"), m_circleOffset, 0);
		PX_Long(pPX, _T("FlashColor"), (long &)m_flashColor, RGB(0xFF, 0x00, 0x00));
		PX_String(pPX, _T("Note"), m_note, _T(""));
	}
	else if (pPX->IsLoading())
	{
		// Skip over persistent data
		BOOL bDummy;
		short sDummy;
		long lDummy;
		CString strDummy;
		PX_Bool(pPX, _T("CircleShape"), bDummy, FALSE);
		PX_Short(pPX, _T("CircleOffset"), sDummy, 0);
		PX_Long(pPX, _T("FlashColor"), lDummy, 0);
		PX_String(pPX, _T("Note"), strDummy, _T(""));

		// Force property values to these defaults
		m_circleShape = TRUE;
		m_circleOffset = 0;
		m_flashColor = RGB(0xFF, 0x00, 0x00);
		m_note = _T("");
	}
}
예제 #2
0
void CDocViewCoreCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO: 为每个持久的自定义属性调用 PX_ 函数。
}
예제 #3
0
파일: XMMRCtl.cpp 프로젝트: ja7ude/XMMT
void CXMMRCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	PX_Bool(pPX, _T("bInitialClose"), m_bInitialClose, TRUE);
	PX_Bool(pPX, _T("bConfirmClose"), m_bConfirmClose, TRUE);
	PX_Bool(pPX, _T("bNotifyFFT"), m_bNotifyFFT, TRUE);
	PX_Bool(pPX, _T("bNotifyXY"), m_bNotifyXY, TRUE);
	PX_Bool(pPX, _T("bNotifyComChange"), m_bNotifyComChange, TRUE);
	PX_Bool(pPX, _T("bTranslateAllMessages"), m_bTranslateAllMessages, FALSE);
	PX_Bool(pPX, _T("bRemoveUselessMessage"), m_bRemoveUselessMessage, TRUE);
#ifdef _DEBUG
	PX_String(pPX, _T("InvokeCommand"), m_InvokeCommand, _T("D:\\MMTTY\\MMTTY.EXE -r"));
#else
	PX_String(pPX, _T("InvokeCommand"), m_InvokeCommand, _T("MMTTY.EXE -m"));
#endif
	PX_String(pPX, _T("ComName"), m_ComName, _T(""));
	PX_String(pPX, _T("RadioName"), m_RadioName, _T(""));
	PX_String(pPX, _T("Title"), m_Title, _T(""));
	PX_Long(pPX, _T("smpFFT"), m_smpFFT, FALSE);
	PX_Long(pPX, _T("DelayInvoke"), m_delayInvoke, 0);

#if 0
	if( pPX->IsLoading() ){
		DecodeOptions();
	}
#endif
}
예제 #4
0
void CColosseumCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	// TODO: Call PX_ functions for each persistent custom property.
	
	
	PX_String(pPX, _T("server"), m_server, _T("http://localhost:2222/Service1.svc"));
	//PX_Long(pPX, _T("File"), m_fileNumber);
	
	parseParameters(std::string((LPCSTR)m_server));

	///Create a temporary file using a unique timestamp
	TCHAR temp_path[MAX_PATH];
	///Get the temp path
	DWORD retValue = GetTempPath(MAX_PATH, temp_path);
	//If the returned number is greater than the number of MAX_PATH then stop execution
	if(retValue > MAX_PATH)
		ASSERT(1==0);
	std::stringstream ss;
	unsigned __int64 time_stamp;
	/* Initialize the file streams in the endpoint model vector*/
	for(size_t i = 0; i < m_endpointModelVector.size(); i++) {
		time_stamp = __rdtsc();
		ss << temp_path << "temp" << time_stamp + i << ".ifc";
		m_endpointModelVector[i]->setFileName(ss.str());
		m_endpointModelVector[i]->openFile(ss.str());
		ss.str("");
	}
	
}
예제 #5
0
void CScreenCaptureXCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO: 为每个持久的自定义属性调用 PX_ 函数。
}
예제 #6
0
void CGeiOfficeCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO : appelez les fonctions PX_ pour chaque propriété personnalisée persistante.
}
예제 #7
0
void CHardInfoActiveXCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO:  为每个持久的自定义属性调用 PX_ 函数。
}
예제 #8
0
void CCintocxCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO: Call PX_ functions for each persistent custom property.
}
예제 #9
0
void CSpindialCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	PX_Short(pPX, _T("NeedlePosition"), m_needlePosition, 0);
}
예제 #10
0
void CfsNVRPluginCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO: 为每个持久的自定义属性调用 PX_ 函数。
	long nChannel = 100;
	long nCurChannel = 100;
	long nCurStyle = 100;
	if   (pPX-> GetVersion()   ==   (DWORD)MAKELONG(_wVerMinor,   _wVerMajor)) 
	{
		PX_Long(pPX, _T("MaxChannel"), nChannel);
		PX_Long(pPX, _T("CurChannel"), nCurChannel);
		PX_Long(pPX, _T("CurStyle"), nCurStyle);
 		if (nChannel <= 9 && nChannel >= 1 && nCurChannel <= 9 && nCurChannel >= 1 && nCurStyle <= 1 && nCurChannel >=0 )
 		{
			Glue_SetProperty_Long(mGlue, "MaxChannel", nChannel);
			Glue_SetProperty_Long(mGlue, "CurChannel", nCurChannel);
			Glue_SetProperty_Long(mGlue, "CurStyle", nCurStyle);
			WRITELOG("Set MaxChannel %d %s %d", nChannel, __FILE__, __LINE__);
			WRITELOG("Set CurChannel %d %s %d", nCurChannel, __FILE__, __LINE__);
			WRITELOG("Set CurStyle %d %s %d", nCurStyle, __FILE__, __LINE__);
 		}
	} 
}
예제 #11
0
파일: XMMTCtl.cpp 프로젝트: ja7ude/XMMT
void CXMMTCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	PX_Bool(pPX, _T("bFftConversion"), m_bFftConversion, FALSE);
	PX_Short(pPX, _T("wPortTcp"), m_PortTCP, 10301);
}
void CThingTreeCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	CVWUIView::DoPropExchange(pPX);

	// TODO: Call PX_ functions for each persistent custom property.

}
void CLesson18Ctrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	// TODO: 为每个持久的自定义属性调用 PX_ 函数。
    PX_Short(pPX,_T("Interval"),m_Interval,2000);
}
예제 #14
0
void CRButtonCtrl::DoPropExchange(CPropExchange* pPX)
{
	m_ResourceNumber&=0x00ffffff;
	m_ResourceNumber+=m_alignment<<24;

	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	PX_Bool(pPX, _T("MovesParent"), m_bMovesParent, FALSE);
	PX_Long(pPX, _T("FontNum"), m_FontNum, 0);
	PX_Bool(pPX, _T("CloseButton"), m_bCloseButton, FALSE);
	PX_Bool(pPX, _T("TickButton"), m_bTickButton, FALSE);
	PX_Bool(pPX, _T("ShowShadow"), m_bShowShadow, FALSE);
	PX_Color(pPX, _T("ShadowColor"), m_ShadowColor, FALSE);
	PX_String(pPX, _T("String"), m_string, _T(""));
	PX_Long(pPX, _T("ResourceNumber"), m_ResourceNumber, 0);
	PX_Long(pPX, _T("NormalFileNum"), m_NormalFileNum, 0);
	PX_Long(pPX, _T("PressedFileNum"), m_PressedFileNum, 7);
	PX_String(pPX, _T("NormalFileNumString"), m_NormalFileNumString, _T(""));
	PX_String(pPX, _T("PressedFileNumString"), m_PressedFileNumString, _T(""));
	if (pPX->GetVersion()&0x1)
	{
		PX_String(pPX, _T("HintString"), m_hintString, _T(""));
		PX_String(pPX, _T("HintStringID"), m_hintStringID, _T(""));
		PX_Long(pPX, _T("HintResourceNumber"), m_hintResourceNumber, 0);
	}
	else
	{


	}
	if (pPX->GetVersion()&0x2)
	{


	}
	else
	{

	}
	m_alignment=m_ResourceNumber>>24;
//DeadCode MS 04May100 	UByteP(0xB0000)[160*5]='0'+m_alignment;
	m_ResourceNumber&=0x00ffffff;

	if (pPX->IsLoading())
	{
		if (GetBackColor()==0)
			SetBackColor(GetForeColor());
		if (m_bCloseButton || m_bTickButton)							  //JIM 21/05/99
			m_bHelpButton=TRUE; // remove this if it becomes a persistent property
		else
			m_bHelpButton=FALSE;
	}
	if (m_PressedFileNum==7)
		m_PressedFileNumString="";

}
예제 #15
0
void StActiveXCtrl::DoPropExchange(CPropExchange* thePropEx) {
    ExchangeVersion(thePropEx, MAKELONG(StActiveXModule::VER_MINOR, StActiveXModule::VER_MAJOR));
    COleControl::DoPropExchange(thePropEx);
    PX_String(thePropEx, _T("src"),          myUrlFull);
    PX_String(thePropEx, _T("data-prv-url"), myUrlPreview);
    PX_String(thePropEx, _T("type"),         myMimeType);

    myHasPreview = !myUrlPreview.IsEmpty()
                && myUrlPreview != myUrlFull;
}
예제 #16
0
파일: RTREECTL.CPP 프로젝트: gondur/BOB_Src
void CRTreeCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	PX_Picture(pPX, _T("ControlPicture"),m_pic);
    PX_Long(pPX, _T("BoxWidth"), m_lBoxWidth, TRUE);
    PX_Long(pPX, _T("BoxHeight"), m_lBoxHeight, TRUE);
    PX_Long(pPX, _T("Depth"), m_lDepth, TRUE);
    PX_Long(pPX, _T("GapWidth"), m_lGapWidth, TRUE);	
}
예제 #17
0
void CColosseumCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	// TODO: Call PX_ functions for each persistent custom property.
	
	
	PX_String(pPX, _T("server"), m_server, _T(""));
	
}
예제 #18
0
void CImageCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	if (pPX->IsLoading())
		InternalSetReadyState(READYSTATE_LOADING);

	PX_DataPath(pPX, _T("ImagePath"), m_bitprop);
	PX_Bool(pPX, _T("AutoSize"), m_bAutoSize, TRUE);
}
예제 #19
0
void CColorButtonCtrl::DoPropExchange(CPropExchange* pPX)
{
    ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));

    COleControl::DoPropExchange(pPX);

    // Call PX_ functions for each persistent custom property.
    PX_Short(pPX, _T("BevelWidth"), m_BevelWidth, 2);
    PX_Color(pPX, _T("BackColor"), m_BackColor, ::GetSysColor(COLOR_BTNFACE));
    PX_Color(pPX, _T("ForeColor"), m_ForeColor, ::GetSysColor(COLOR_BTNTEXT));
    PX_String(pPX, _T("Caption"), m_sCaption, AmbientDisplayName());
}
예제 #20
0
void CTesthelpCtrl::DoPropExchange(CPropExchange* pPX)
{
		  ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
		  COleControl::DoPropExchange(pPX);
		  // custom DDX
		  PX_String(pPX, _T("Name1"), m_szName1);
		  PX_String(pPX, _T("Name2"), m_szName2);
		  PX_String(pPX, _T("Name3"), m_szName3);
		  PX_Bool(pPX, _T("UseMyHelp"),m_bUseMyHelp, TRUE);
		  PX_Bool(pPX, _T("ShowToolTip"), m_bShowToolTip,FALSE);
		  PX_Short(pPX, _T("UsePopupHelp"), m_nUsePopupHelp,0);
		  PX_String(pPX, _T("ToolTipText"),m_szToolTipText,"");

}
예제 #21
0
void CTimeCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	short nInterval = m_interval;
	PX_Short(pPX, _T("Interval"), (short) m_interval, (short) DEFAULT_INTERVAL);

	if (pPX->IsLoading())
	{
		if (nInterval != m_interval)
			OnIntervalChanged();    // Force timer to recreate w/ correct interval
		OnEnabledChanged();
	}
}
예제 #22
0
void CIpmCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);

	PX_Long (pPX, _T("TimeOut"),          m_timeOut,           DEFAULT_TIMEOUT);
	PX_Long (pPX, _T("RefreshFrequency"), m_refreshFrequency,  DEFAULT_REFRESHFREQUENCY);
	PX_Bool (pPX, _T("ActivateRefresh"),  m_activateRefresh,   DEFAULT_ACTIVATEREFRESH);
	PX_Bool (pPX, _T("ShowGrid"),         m_showGrid,          DEFAULT_GRID);
	PX_Long (pPX, _T("Unit"),             m_unit,              DEFAULT_UNIT);
	PX_Long (pPX, _T("MaxSession"),       m_maxSession,        DEFAULT_MAXSESSION);

	if (pPX->IsLoading() && m_pIpmFrame)
	{
		CdIpmDoc* pDoc = m_pIpmFrame->GetIpmDoc();
		ASSERT(pDoc);
		if (pDoc)
		{
			CaIpmProperty& property = pDoc->GetProperty();
			ConstructPropertySet (property);
		}
	}
}
예제 #23
0
void CMimicsArcCtrl::DoPropExchange(CPropExchange *pPX)
{
	ExchangeVersion(pPX, MAKELONG(CMimicsApp::wAppVerMinor, CMimicsApp::wAppVerMajor));
	CMimicsCtrl::DoPropExchange(pPX);
}
예제 #24
0
파일: RTABSCTL.CPP 프로젝트: gondur/mig_src
void CRTabsCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	PX_Long(pPX, _T("FontNum"), m_FontNum, 0);
}
예제 #25
0
void CPushCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
}
예제 #26
0
파일: RJOYCFGC.CPP 프로젝트: gondur/BOB_Src
void CRJoyCfgCtrl::DoPropExchange(CPropExchange* pPX)
{
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	PX_Picture(pPX, "ControlPicture",m_pic);
}
예제 #27
0
void CfreeWRLCtrl::DoPropExchange(CPropExchange* pPX)
{
#define MESSBOX 1
#undef MESSBOX
#ifdef MESSBOX //_DEBUGn
		AfxMessageBox("doPropExchange m_initialized="+m_initialized); //"DoPropExchange");
#endif
	ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
	COleControl::DoPropExchange(pPX);
	USES_CONVERSION;


	//PX_String(pPX, "SRC", m_cstrFileName); 

	// TODO: Call PX_ functions for each persistent custom property.
	//HTML <OBJECT> tends to generate two DoPropExchanges, HREF and EMBED just one, 
	// so we'll fetch SRC on the first
	if(m_initialized / 10 == 0) 
	{

		// MimeType sample program says SRC property is where Mime handler 
		//   passes in URL
	  if(PX_String(pPX, "SRC", m_cstrFileName)){
		//AfxMessageBox(m_cstrFileName);

		// http://support.microsoft.com/kb/181678 How to Retrieve the URL of a Web Page from an ActiveX Control
		//m_cstrContainerURL = NULL; //C++ initializes these I think.
		LPOLECLIENTSITE pClientSite = this->GetClientSite();
		if (pClientSite != NULL)
		{
			// Obtain URL from container moniker.
			CComPtr<IMoniker> spmk;
			LPOLESTR pszDisplayName;

			if (SUCCEEDED(pClientSite->GetMoniker(
											OLEGETMONIKER_TEMPFORUSER,
											OLEWHICHMK_CONTAINER,
											&spmk)))
			{
				if (SUCCEEDED(spmk->GetDisplayName(
										NULL, NULL, &pszDisplayName)))
				{

					CComBSTR bstrURL;
					bstrURL = pszDisplayName;
					//AfxMessageBox(OLE2T(bstrURL));
					m_cstrContainerURL = OLE2T(bstrURL);
					//ATLTRACE("The current URL is %s\n", OLE2T(bstrURL));
					CoTaskMemFree((LPVOID)pszDisplayName);
				}
			}
		}
		//AfxMessageBox("containerURL="+m_cstrContainerURL);
		//AfxMessageBox("fileName="+m_cstrFileName); //"DoPropExchange");
		if(m_cstrContainerURL != m_cstrFileName)
		{
			//they are different, so concatonate
			int lastSlash = m_cstrContainerURL.ReverseFind('/');
			m_cstrContainerURL = m_cstrContainerURL.Left(lastSlash);
			if(m_cstrContainerURL.GetLength() > 0)
				m_cstrFileName = m_cstrContainerURL + "/" + m_cstrFileName;
		}
#define MESSBOX 1
#undef MESSBOX
#ifdef MESSBOX //_DEBUGn
		AfxMessageBox(m_cstrFileName); //"DoPropExchange");
#endif
		//m_Hwnd = (void *)0; //an unlikely real handle value, and not null either 
		m_initialized += 10; //10 means we have a filename
	 // }else{
		//AfxMessageBox("get SRC failed");
	  }
	}
}