qobject_cast

void QLadderDiagramItem::GetMainForm(DoType sourceType)
{
for each (QWidget *w in qApp->topLevelWidgets())
{
if (Shell* helpEvent = qobject_cast<Shell*>(w))
{
helpEvent->OnLadderDiagramItemChange(this, sourceType);
}
}

}

struct st_Param {
int iParamCount; //参数个数
CString strParam[MAX_PARAMCOUNT]; //各参数信息
int iParamType[MAX_PARAMCOUNT]; //参数类型 位 ,字

st_Param()
{
iParamCount = 0;
for (int i = 0; i < MAX_PARAMCOUNT; i++)
{
strParam[i] = _T("");
iParamType[i] = 0;
}

}//指令类型
}CmdParam[MAX_PARAMCLASS];

转载于:https://www.cnblogs.com/ShiShouTHS/p/11083846.html

猜你喜欢

转载自blog.csdn.net/weixin_33794672/article/details/93758253