프로그래밍/VC++

ActiveX에서 Param 태그의 값 가져오게 하기

panpro 2008. 2. 25. 16:54

// CaxArchiveCtrl::DoPropExchange - 지속성 지원입니다.

void CaxArchiveCtrl::DoPropExchange(CPropExchange* pPX)
{
 ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
 
 PX_String(pPX, _T("MasterID"), m_MasterID) ;
 PX_String(pPX, _T("UserID"), m_UserID) ;
 PX_String(pPX, _T("Keyword"), m_Keyword) ;
 
 COleControl::DoPropExchange(pPX);

 // TODO: 지속적인 사용자 지정 속성 모두에 대해 PX_ functions를 호출합니다.
}

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<script src="docwrite.js" language="JScript"></script>
<table border=0 width=100% height=100%>
<tr>
<td width=100% height=100%>
<script>
JS_viewObj('<object id="axDAS" classid="CLSID:2EC0FC40-CA00-4CF3-979D-386F55433844" width="100%" height="100%" ><param name="MasterID" value="마스터아이디"><param name="UserID" value="유저아이디"><param name="Keyword" value="키워드"></object>');
</script>
</td>
</tr>
</table>