发表于:2008-12-14 22:20:44
1楼
//启动
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
DWORD a[32],b[32],t;
WORD c;
a[0]=0x00000001; b[0]=0xFFFFFFFE;
a[1]=0x00000002; b[1]=0xFFFFFFFD;
a[2]=0x00000004; b[2]=0xFFFFFFFB;
a[3]=0x00000008; b[3]=0xFFFFFFF7;
a[4]=0x00000010; b[4]=0xFFFFFFEF;
a[5]=0x00000020; b[5]=0xFFFFFFDF;
a[6]=0x00000040; b[6]=0xFFFFFFBF;
a[7]=0x00000080; b[7]=0xFFFFFF7F;
a[8]=0x00000100; b[8]=0xFFFFFEFF;
a[9]=0x00000200; b[9]=0xFFFFFDFF;
a[10]=0x00000400;b[10]=0xFFFFFBFF;
a[11]=0x00000800;b[11]=0xFFFFF7FF;
a[12]=0x00001000;b[12]=0xFFFFEFFF;
a[13]=0x00002000;b[13]=0xFFFFDFFF;
a[14]=0x00004000;b[14]=0xFFFFBFFF;
a[15]=0x00008000;b[15]=0xFFFF7FFF;
a[16]=0x00010000;b[16]=0xFFFEFFFF;
a[17]=0x00020000;b[17]=0xFFFDFFFF;
a[18]=0x00040000;b[18]=0xFFFBFFFF;
a[19]=0x00080000;b[19]=0xFFF7FFFF;
a[20]=0x00100000;b[20]=0xFFEFFFFF;
a[21]=0x00200000;b[21]=0xFFDFFFFF;
a[22]=0x00400000;b[22]=0xFFBFFFFF;
a[23]=0x00800000;b[23]=0xFF7FFFFF;
a[24]=0x01000000;b[24]=0xFEFFFFFF;
a[25]=0x02000000;b[25]=0xFDFFFFFF;
a[26]=0x04000000;b[26]=0xFBFFFFFF;
a[27]=0x08000000;b[27]=0xF7FFFFFF;
a[28]=0x10000000;b[28]=0xEFFFFFFF;
a[29]=0x20000000;b[29]=0xDFFFFFFF;
a[30]=0x40000000;b[30]=0xBFFFFFFF;
a[31]=0x80000000;b[31]=0x7FFFFFFF;
SetTagBit ("M4109_1",1);
t=GetTagDWord("m2");
t=t|a[8];
SetTagDWord("m2",t);
}
#include "apdefap.h"
void OnLButtonUp(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
DWORD a[32],b[32],t;
WORD c;
a[0]=0x00000001; b[0]=0xFFFFFFFE;
a[1]=0x00000002; b[1]=0xFFFFFFFD;
a[2]=0x00000004; b[2]=0xFFFFFFFB;
a[3]=0x00000008; b[3]=0xFFFFFFF7;
a[4]=0x00000010; b[4]=0xFFFFFFEF;
a[5]=0x00000020; b[5]=0xFFFFFFDF;
a[6]=0x00000040; b[6]=0xFFFFFFBF;
a[7]=0x00000080; b[7]=0xFFFFFF7F;
a[8]=0x00000100; b[8]=0xFFFFFEFF;
a[9]=0x00000200; b[9]=0xFFFFFDFF;
a[10]=0x00000400;b[10]=0xFFFFFBFF;
a[11]=0x00000800;b[11]=0xFFFFF7FF;
a[12]=0x00001000;b[12]=0xFFFFEFFF;
a[13]=0x00002000;b[13]=0xFFFFDFFF;
a[14]=0x00004000;b[14]=0xFFFFBFFF;
a[15]=0x00008000;b[15]=0xFFFF7FFF;
a[16]=0x00010000;b[16]=0xFFFEFFFF;
a[17]=0x00020000;b[17]=0xFFFDFFFF;
a[18]=0x00040000;b[18]=0xFFFBFFFF;
a[19]=0x00080000;b[19]=0xFFF7FFFF;
a[20]=0x00100000;b[20]=0xFFEFFFFF;
a[21]=0x00200000;b[21]=0xFFDFFFFF;
a[22]=0x00400000;b[22]=0xFFBFFFFF;
a[23]=0x00800000;b[23]=0xFF7FFFFF;
a[24]=0x01000000;b[24]=0xFEFFFFFF;
a[25]=0x02000000;b[25]=0xFDFFFFFF;
a[26]=0x04000000;b[26]=0xFBFFFFFF;
a[27]=0x08000000;b[27]=0xF7FFFFFF;
a[28]=0x10000000;b[28]=0xEFFFFFFF;
a[29]=0x20000000;b[29]=0xDFFFFFFF;
a[30]=0x40000000;b[30]=0xBFFFFFFF;
a[31]=0x80000000;b[31]=0x7FFFFFFF;
SetTagBit ("M4109_1",0);
t=GetTagDWord("m2");
t=t&b[8];
SetTagDWord("m2",t);
}
//停止
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
DWORD a[32],b[32],t;
WORD c;
a[0]=0x00000001; b[0]=0xFFFFFFFE;
a[1]=0x00000002; b[1]=0xFFFFFFFD;
a[2]=0x00000004; b[2]=0xFFFFFFFB;
a[3]=0x00000008; b[3]=0xFFFFFFF7;
a[4]=0x00000010; b[4]=0xFFFFFFEF;
a[5]=0x00000020; b[5]=0xFFFFFFDF;
a[6]=0x00000040; b[6]=0xFFFFFFBF;
a[7]=0x00000080; b[7]=0xFFFFFF7F;
a[8]=0x00000100; b[8]=0xFFFFFEFF;
a[9]=0x00000200; b[9]=0xFFFFFDFF;
a[10]=0x00000400;b[10]=0xFFFFFBFF;
a[11]=0x00000800;b[11]=0xFFFFF7FF;
a[12]=0x00001000;b[12]=0xFFFFEFFF;
a[13]=0x00002000;b[13]=0xFFFFDFFF;
a[14]=0x00004000;b[14]=0xFFFFBFFF;
a[15]=0x00008000;b[15]=0xFFFF7FFF;
a[16]=0x00010000;b[16]=0xFFFEFFFF;
a[17]=0x00020000;b[17]=0xFFFDFFFF;
a[18]=0x00040000;b[18]=0xFFFBFFFF;
a[19]=0x00080000;b[19]=0xFFF7FFFF;
a[20]=0x00100000;b[20]=0xFFEFFFFF;
a[21]=0x00200000;b[21]=0xFFDFFFFF;
a[22]=0x00400000;b[22]=0xFFBFFFFF;
a[23]=0x00800000;b[23]=0xFF7FFFFF;
a[24]=0x01000000;b[24]=0xFEFFFFFF;
a[25]=0x02000000;b[25]=0xFDFFFFFF;
a[26]=0x04000000;b[26]=0xFBFFFFFF;
a[27]=0x08000000;b[27]=0xF7FFFFFF;
a[28]=0x10000000;b[28]=0xEFFFFFFF;
a[29]=0x20000000;b[29]=0xDFFFFFFF;
a[30]=0x40000000;b[30]=0xBFFFFFFF;
a[31]=0x80000000;b[31]=0x7FFFFFFF;
SetTagBit ("M4109_2",1);
t=GetTagDWord("m2");
t=t|a[9];
SetTagDWord("m2",t);
}
#include "apdefap.h"
void OnLButtonUp(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
DWORD a[32],b[32],t;
WORD c;
a[0]=0x00000001; b[0]=0xFFFFFFFE;
a[1]=0x00000002; b[1]=0xFFFFFFFD;
a[2]=0x00000004; b[2]=0xFFFFFFFB;
a[3]=0x00000008; b[3]=0xFFFFFFF7;
a[4]=0x00000010; b[4]=0xFFFFFFEF;
a[5]=0x00000020; b[5]=0xFFFFFFDF;
a[6]=0x00000040; b[6]=0xFFFFFFBF;
a[7]=0x00000080; b[7]=0xFFFFFF7F;
a[8]=0x00000100; b[8]=0xFFFFFEFF;
a[9]=0x00000200; b[9]=0xFFFFFDFF;
a[10]=0x00000400;b[10]=0xFFFFFBFF;
a[11]=0x00000800;b[11]=0xFFFFF7FF;
a[12]=0x00001000;b[12]=0xFFFFEFFF;
a[13]=0x00002000;b[13]=0xFFFFDFFF;
a[14]=0x00004000;b[14]=0xFFFFBFFF;
a[15]=0x00008000;b[15]=0xFFFF7FFF;
a[16]=0x00010000;b[16]=0xFFFEFFFF;
a[17]=0x00020000;b[17]=0xFFFDFFFF;
a[18]=0x00040000;b[18]=0xFFFBFFFF;
a[19]=0x00080000;b[19]=0xFFF7FFFF;
a[20]=0x00100000;b[20]=0xFFEFFFFF;
a[21]=0x00200000;b[21]=0xFFDFFFFF;
a[22]=0x00400000;b[22]=0xFFBFFFFF;
a[23]=0x00800000;b[23]=0xFF7FFFFF;
a[24]=0x01000000;b[24]=0xFEFFFFFF;
a[25]=0x02000000;b[25]=0xFDFFFFFF;
a[26]=0x04000000;b[26]=0xFBFFFFFF;
a[27]=0x08000000;b[27]=0xF7FFFFFF;
a[28]=0x10000000;b[28]=0xEFFFFFFF;
a[29]=0x20000000;b[29]=0xDFFFFFFF;
a[30]=0x40000000;b[30]=0xBFFFFFFF;
a[31]=0x80000000;b[31]=0x7FFFFFFF;
SetTagBit ("M4109_2",0);
t=GetTagDWord("m2");
t=t&b[9];
SetTagDWord("m2",t);
}