请大家帮我一条一条分析一下吧:
#include
问题补充:
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#pragma option(mbcs)
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
// WINCC:TAGNAME_SECTION_END
// WINCC:PICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCC:PICNAME_SECTION_END
short furNO; //炉号
char* pMF; //指针字符
HWND hWnd=NULL; //窗口句柄
furNO = GetTagSWord("FurNO"); //内部函数去调用WINCC的数据。
//furNO = 3;
pMF = SysMalloc(100);
sprintf(pMF, "F%d/Pa_Burner.MF1_ON", furNO);
hWnd=FindWindow(NULL,"WinCC-运行系统 - ");
if (MessageBox (hWnd, "确定启动风机?", "风机运行提示", MB_OKCANCEL)==IDOK)
{
SetTagBit(pMF,1);
}
SysFree(pMF);
}
最佳答案
代码不全
提问者对于答案的评价:
都没回答??就给你吧
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc265078.html