谁能知道这个要怎么该
m_Menu.LoadMenu(IDR_MAINFRAME_MENU);SetMenu(&m_Menu);TBBUTTONtbButton[ICONSUM]={0};m_...
m_Menu.LoadMenu(IDR_MAINFRAME_MENU);
SetMenu(&m_Menu);
TBBUTTON tbButton[ICONSUM]={0};
m_ImageList.Create(32,32,ILC_COLOR32|ILC_MASK,0,0);
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON3));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON1));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON4));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON5));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON2));
m_ToolBar.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0);
m_ToolBar.SetImageList(&m_ImageList);
for(int i=0;i<ICONSUM;i++)
{
tbButton[i].dwData = NULL;
tbButton[i].fsState =TBSTATE_ENABLED;
tbButton[i].fsStyle =(BYTE)TBSTYLE_FLAT;
tbButton[i].iBitmap =i;
}
tbButton[0].idCommand=ID_ATTENDANCE_RECORD;
tbButton[1].idCommand=IDM_REQUEST_EMPLOYEE;
tbButton[2].idCommand=IDM_PAYLIP;
tbButton[3].idCommand=IDM_PORTFOLIO;
tbButton[4].idCommand=ID_ABOUT;
m_ToolBar.AddButtons(ICONSUM,tbButton);
m_ToolBar.AutoSize();
m_ToolBar.SetStyle(TBSTYLE_FLAT|CCS_TOP);
错误提示::\HRMS\HRMSDlg.cpp(122) : error C2065: 'ICONSUM' : undeclared identifier
E:\HRMS\HRMSDlg.cpp(122) : error C2057: expected constant expression
E:\HRMS\HRMSDlg.cpp(122) : error C2466: cannot allocate an array of constant size 0 展开
SetMenu(&m_Menu);
TBBUTTON tbButton[ICONSUM]={0};
m_ImageList.Create(32,32,ILC_COLOR32|ILC_MASK,0,0);
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON3));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON1));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON4));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON5));
m_ImageList.Add(::AfxGetApp()->LoadIcon(IDI_ICON2));
m_ToolBar.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0);
m_ToolBar.SetImageList(&m_ImageList);
for(int i=0;i<ICONSUM;i++)
{
tbButton[i].dwData = NULL;
tbButton[i].fsState =TBSTATE_ENABLED;
tbButton[i].fsStyle =(BYTE)TBSTYLE_FLAT;
tbButton[i].iBitmap =i;
}
tbButton[0].idCommand=ID_ATTENDANCE_RECORD;
tbButton[1].idCommand=IDM_REQUEST_EMPLOYEE;
tbButton[2].idCommand=IDM_PAYLIP;
tbButton[3].idCommand=IDM_PORTFOLIO;
tbButton[4].idCommand=ID_ABOUT;
m_ToolBar.AddButtons(ICONSUM,tbButton);
m_ToolBar.AutoSize();
m_ToolBar.SetStyle(TBSTYLE_FLAT|CCS_TOP);
错误提示::\HRMS\HRMSDlg.cpp(122) : error C2065: 'ICONSUM' : undeclared identifier
E:\HRMS\HRMSDlg.cpp(122) : error C2057: expected constant expression
E:\HRMS\HRMSDlg.cpp(122) : error C2466: cannot allocate an array of constant size 0 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询