wincc 运行后 窗口名称是 wincc-运行系统,我想修改它 ,哪位有办法帮帮我 谢谢
最佳答案
#include "apdefap.h"
void OnOpenPicture(char* lpszPictureName, char* lpszObjectName, char* lpzsPropertyName)
{
//get handle of runtime window
HWND hWnd = NULL;
hWnd = FindWindow(NULL,"WinCC-Runtime - ");
//set text of runtime window
SetWindowText(hWnd,"自定义名称");
//set position and size of runtime window
SetWindowPos(hWnd,HWND_TOP,0,0,1024,168,0);
//set active the first chapter
SetTagByte("U08i_org_bar_1",0);
//
CreateExternalTags();
}
供参考,你修改一下
提问者对于答案的评价:
谢谢
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc268052.html