www.mxdraw.com
|
返回函数或命令传过来的参数,返回的参数不需要用户自己释放
struct resbuf* Mx_GetArgs();
返回函数或命令传过来的参数,返回的参数不需要用户自己释放
例如: C#代码
private void button1_Click(object sender, EventArgs e) { axMxDrawX1.RegistUserCustomCommand("MyCmd", 11); } private void axMxDrawX1_ImplementCommandEvent(object sender, AxMxDrawXLib._DMxDrawXEvents_ImplementCommandEventEvent e) { if (e.iCommandId == 11) { MxDrawResbuf param = (MxDrawResbuf)axMxDrawX1.Cal("Mx_GetArgs"); MessageBox.Show(param.AtString(1)); } } private void button2_Click(object sender, EventArgs e) { MxDrawResbuf param = new MxDrawResbuf(); param.AddString("Command Param string"); axMxDrawX1.SendStringToExecuteEx("MyCmd",param); }