www.mxdraw.com
内容索引主面
前一个向上下一个
MxDrawXCustomFunction::Mx_GetArgs 方法

返回函数或命令传过来的参数,返回的参数不需要用户自己释放

IDL
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);
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!