|
www.mxdraw.com
|
得控件所有的布局名
static CStringArray GetAllLayoutName();
返回布局名数组.
例如:C++Bulider中使用
Mxdrawxlib_tlb::IMxDrawResbufPtr retRb;
retRb = MxDrawApplication1->Call(L"GetAllLayoutName", L"");
if(retRb->Count > 1)
{
int i = 1;
for(;i < retRb->Count;i++)
{
ShowMessage(retRb->AtString(i));
}
}
else
{
ShowMessage(L"没有得到");
}例如:JS代码
function myclick()
{
var ocx = document.getElementById("MxDrawXCtrl");
var ret = ocx.Call("GetAllLayoutName", "");
if(ret.Count > 1)
{
var i = 1;
for(;i < ret.Count;i++)
{
alert(ret.AtString(i));
}
}
else
{
alert("没有得到");
}
}