www.mxdraw.com
|
把控件创建成,另一个控件的预览控件.
static BOOL Mx_CreateDsView(MxDraw::MXDRAWOCXHANDLE hOcx);
参数 |
说明 |
MxDraw::MXDRAWOCXHANDLE hOcx |
另一个控件 |
成功返回TRUE;
例如: VC COM
void CTestVc2005Dlg::InitCompleteMxdrawxctrlDsview() { // TODO: 在此处添加消息处理程序代码 LONGLONG lId = m_ocx.GetMxDrawXId(); IMxDrawResbufPtr spParam; spParam.CreateInstance(__uuidof( MxDrawXLib::MxDrawResbuf )); spParam->AddObjectId(lId); IDispatchPtr spRet(m_dsOcx.CallEx(_T("Mx_CreateDsView"),spParam),false); }
例如: C# 代码
private void axMxDrawDsView_InitComplete(object sender, EventArgs e) { Int64 lId = axMxDrawX1.GetMxDrawXId(); MxDrawXLib.MxDrawResbuf param = new MxDrawXLib.MxDrawResbuf(); param.AddObjectId(lId); axMxDrawDsView.CallEx("Mx_CreateDsView", param); }