C++物流管理系统(功能结构图+源代码+论文参考文献) 第5页
if(nXSGL==0)
sCondition[1]="销售管理(&S)";
if(nCKGL==0)
sCondition[2]="仓储管理(&C)";
if(nPSGL==0)
sCondition[3]="配送管理(&P)";
if(nYSGL==0)
sCondition[4]="运输管理(&T)";
if(nBGGL==0)
sCondition[5]="报关管理(&A)";
if(nJCGL==0)
sCondition[6]="决策管理(&D)";
if(nXTGL==0)
sCondition[7]="系统管理(&S)";
//计算出快捷按钮各数
int nCount=0;
if(nJCXX!=0)
nCount=nCount+1;
if(nXSGL!=0)
nCount=nCount+1;
if(nCKGL!=0)
nCount=nCount+3;
if(nPSGL!=0)
nCount=nCount+2;
if(nYSGL!=0)
nCount=nCount+1;
if(nXTGL!=0)
nCount=nCount+1;
int pIDArray[15];
int nCur=0;
if(nJCXX!=0)
{
pIDArray[nCur]=IDM_JCXX_HPXXWH;
nCur++;
}
if(nXSGL!=0)
{
pIDArray[nCur]=IDM_XSGL_XSKP;
nCur++;
}
if(nCKGL!=0)
{
pIDArray[nCur]=IDM_CCGL_CKDJ;
pIDArray[nCur+1]=IDM_CCGL_RKDJ;
pIDArray[nCur+2]=IDM_CCGL_CCZBB;
nCur=nCur+3;
}
if(nPSGL!=0)
{
pIDArray[nCur]=IDM_PSGL_PSSQ;
pIDArray[nCur+1]=IDM_PSGL_ZTFKCX;
nCur=nCur+2;
}
if(nYSGL!=0)
{
pIDArray[nCur]=IDM_YSGL_HCQRGL;
nCur++;
}
if(nXTGL!=0)
{
pIDArray[nCur]=IDM_SJGL_SJBF;
nCur++;
}
pIDArray[nCur]=IDM_ZYPX_SPJZ;
nCur++;
m_ToolBar.SetButtons((const unsigned int *)&pIDArray,nCur);
int iImage;
UINT nID,nStyle;
for(i=0;i<nCur;i++)
{
m_ToolBar.GetButtonInfo(i,nID,nStyle,iImage);
switch(nID)
{
case IDM_JCXX_HPXXWH:
{
m_ToolBar.SetButtonInfo(i,IDM_JCXX_HPXXWH,TBBS_BUTTON,0);
break;
}
case IDM_XSGL_XSKP:
{
m_ToolBar.SetButtonInfo(i,IDM_XSGL_XSKP,TBBS_BUTTON,1);
break;
}
case IDM_CCGL_CKDJ:
{
m_ToolBar.SetButtonInfo(i,IDM_CCGL_CKDJ,TBBS_BUTTON,2);
break;
}
case IDM_CCGL_RKDJ:
{
m_ToolBar.SetButtonInfo(i,IDM_CCGL_RKDJ,TBBS_BUTTON,3);
break;
}
case IDM_CCGL_CCZBB:
{
m_ToolBar.SetButtonInfo(i,IDM_CCGL_CCZBB,TBBS_BUTTON,4);
break;
}
case IDM_PSGL_PSSQ:
{
m_ToolBar.SetButtonInfo(i,IDM_PSGL_PSSQ,TBBS_BUTTON,5);
break;
}
case IDM_PSGL_ZTFKCX:
{
m_ToolBar.SetButtonInfo(i,IDM_PSGL_ZTFKCX,TBBS_BUTTON,6);
break;
}
case IDM_YSGL_HCQRGL:
{
m_ToolBar.SetButtonInfo(i,IDM_YSGL_HCQRGL,TBBS_BUTTON,7);
break;
}
case IDM_SJGL_SJBF:
{
m_ToolBar.SetButtonInfo(i,IDM_SJGL_SJBF,TBBS_BUTTON,8);
break;
}
case IDM_ZYPX_SPJZ:
{
m_ToolBar.SetButtonInfo(i,IDM_ZYPX_SPJZ,TBBS_BUTTON,9);
break;
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>