//添加rtf文件
        private void button4_Click(object sender, EventArgs e)
        {
            User_RTF RTF = new User_RTF();

            RTF.strFileName = ".\\EQ2008_RTF.rtf";

            RTF.PartInfo.FrameColor = 0;
            RTF.PartInfo.iFrameMode = 0;
            RTF.PartInfo.iHeight    = 32;
            RTF.PartInfo.iWidth     = 64;
            RTF.PartInfo.iX         = 0;
            RTF.PartInfo.iY         = 0;

            RTF.MoveSet.bClear           = false;
            RTF.MoveSet.iActionSpeed     = 0;
            RTF.MoveSet.iActionType      = 20;
            RTF.MoveSet.iHoldTime        = 20;
            RTF.MoveSet.iClearActionType = 0;
            RTF.MoveSet.iClearSpeed      = 4;
            RTF.MoveSet.iFrameTime       = 20;

            if (-1 == User_AddRTF(g_iCardNum, ref RTF, g_iProgramIndex))
            {
                MessageBox.Show("添加rtf文件失败!");
            }
            else
            {
                MessageBox.Show("添加rtf文件成功!");
            }
        }
Exemple #2
0
 public static extern int User_AddRTF(int CardNum, ref User_RTF pRTF, int iProgramIndex);