c++builder中将辅佐菜单元置改到窗口右方
窗口菜单有两项,个中第二项为辅佐项,我们的目标是将辅佐菜单元置改到窗口右方
char tem[255];
MENUITEMINFO s;
s.cbSize=sizeof(MENUITEMINFO);
s.fMask=MIIM_TYPE;
s.dwTypeData=tem;
GetMenuItemInfo(MainMenu1->Handle,1,true,&s);
s.fType|=MFT_RIGHTJUSTIFY;
SetMenuItemInfo(MainMenu1->Handle,1,true,&s);
DrawMenuBar(Handle);