【WINCC】按钮C一键修改变量

WINCC按钮一键切换变量

 1 #include "apdefap.h"
 2 void OnLButtonUp(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
 3 {
 4 
 5 BOOL a;
 6 a=GetTagBit("M705_1");    //Return-Type :short int 
 7 if (a==0)  
 8 {
 9 if(MessageBox(NULL,"是否需要打开_(阀V308)吗?","操作提示",MB_YESNO|MB_ICONQUESTION|MB_SETFOREGROUND|MB_SYSTEMMODAL) == 6)
10   { SetTagBit("M705_1",1);}
11 }
12 else
13 {
14 if(MessageBox(NULL,"是否需要关闭_(阀V308)吗?","操作提示",MB_YESNO|MB_ICONQUESTION|MB_SETFOREGROUND|MB_SYSTEMMODAL) == 6)
15   { SetTagBit("M705_1",0); }
16 }
17 }

 

【WINCC】按钮C一键修改变量

上一篇:pywin32-227-cp36-cp36m-win32.whl (8.3 MB)


下一篇:将未激活Win10锁屏壁纸设为桌面壁纸