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

2021-03-18 20:24

阅读:351

标签:include   return   name   一键   tag   property   ict   prope   lag   

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一键修改变量

标签:include   return   name   一键   tag   property   ict   prope   lag   

原文地址:https://www.cnblogs.com/1500SCL/p/12345030.html


评论


亲,登录后才可以留言!