up828编程器怎么写93字库
1个回答
2016-07-08
展开全部
//插入菜单项
HMENU hMenu;
HMENU hPopupMenu;
MENUITEMINFO info;
//每一个新插入的菜单项都必须填写MENUITEMINFO结构
info.cbSize = sizeof(MENUITEMINFO);
info.fMask = MFT_STRING | MIIM_DATA | MIIM_ID | MIIM_TYPE;
info.fType = MFT_STRING;
info.fState = 0;
info.wID = ID_NEWITEM;
info.hSubMenu = NULL;
info.hbmpChecked = NULL;
info.hbmpUnchecked = NULL;
info.dwItemData = ID_NEWITEM;
info.dwTypeData = "New Item";
info.cch = 8;
//获得已存在菜单的句柄
hMenu=GetMenu(hMainWnd);
//获得子菜单的句柄
hPopupMenu=GetSubMenu(hMenu,0);
//插入菜单项
InsertMenuItem(hPopupMenu,1,TRUE,&info);
//置插入标志为1
isInsert=1;
}
VOID WINAPI DoDeleteMenuItem()
{
//删除菜单项
HMENU hMenu;
HMENU hPopupMenu;
hMenu=GetMenu(hMainWnd);
hPopupMenu=GetSubMenu(hMenu,0);
RemoveMenu(hPopupMenu,ID_NEWITEM,MF_BYCOMMAND);
isInsert=0;
}
VOID WINAPI DoCheckMenuItem()
{
//此函数先判断菜单项是否被打钩,若没有,则做打钩标记
//若已有,则删除打钩标记
HMENU hMenu;
HMENU hPopupMenu;
hMenu=GetMenu(hMainWnd);
hPopupMenu=GetSubMenu(hMenu,1);
if(isCheck)
{
CheckMenuItem(hPopupMenu,0,MF_BYPOSITION | MF_UNCHECKED);
isCheck=0;
}
else
{
CheckMenuItem(hPopupMenu,0,MF_BYPOSITION | MF_CHECKED);
isCheck=1;
}
}
HMENU hMenu;
HMENU hPopupMenu;
MENUITEMINFO info;
//每一个新插入的菜单项都必须填写MENUITEMINFO结构
info.cbSize = sizeof(MENUITEMINFO);
info.fMask = MFT_STRING | MIIM_DATA | MIIM_ID | MIIM_TYPE;
info.fType = MFT_STRING;
info.fState = 0;
info.wID = ID_NEWITEM;
info.hSubMenu = NULL;
info.hbmpChecked = NULL;
info.hbmpUnchecked = NULL;
info.dwItemData = ID_NEWITEM;
info.dwTypeData = "New Item";
info.cch = 8;
//获得已存在菜单的句柄
hMenu=GetMenu(hMainWnd);
//获得子菜单的句柄
hPopupMenu=GetSubMenu(hMenu,0);
//插入菜单项
InsertMenuItem(hPopupMenu,1,TRUE,&info);
//置插入标志为1
isInsert=1;
}
VOID WINAPI DoDeleteMenuItem()
{
//删除菜单项
HMENU hMenu;
HMENU hPopupMenu;
hMenu=GetMenu(hMainWnd);
hPopupMenu=GetSubMenu(hMenu,0);
RemoveMenu(hPopupMenu,ID_NEWITEM,MF_BYCOMMAND);
isInsert=0;
}
VOID WINAPI DoCheckMenuItem()
{
//此函数先判断菜单项是否被打钩,若没有,则做打钩标记
//若已有,则删除打钩标记
HMENU hMenu;
HMENU hPopupMenu;
hMenu=GetMenu(hMainWnd);
hPopupMenu=GetSubMenu(hMenu,1);
if(isCheck)
{
CheckMenuItem(hPopupMenu,0,MF_BYPOSITION | MF_UNCHECKED);
isCheck=0;
}
else
{
CheckMenuItem(hPopupMenu,0,MF_BYPOSITION | MF_CHECKED);
isCheck=1;
}
}
名片
2024-10-28 广告
2024-10-28 广告
HyperMesh软件作为Altair公司的旗舰产品,是业界领先的CAE网格前处理软件。它以其卓越的网格划分能力、高度的开放性和灵活性著称,广泛应用于汽车、航空航天、电子及机械等领域。正版HyperMesh软件确保了软件的稳定性和安全性,为...
点击进入详情页
本回答由名片提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询