public int SetMenu(HMENU hmenuShared, IntPtr holemenu, HWND hwndActiveObject) { if (m_SetMenuFunc == null) { var fp = GetFunctionPointer(10); m_SetMenuFunc = (SetMenuFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetMenuFunc)); } return(m_SetMenuFunc(m_ptr, hmenuShared, holemenu, hwndActiveObject)); }
public int RemoveMenus(HMENU hmenuShared) { if (m_RemoveMenusFunc == null) { var fp = GetFunctionPointer(11); m_RemoveMenusFunc = (RemoveMenusFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(RemoveMenusFunc)); } return(m_RemoveMenusFunc(m_ptr, hmenuShared)); }
public int InsertMenus(HMENU hmenuShared, ref LPOLEMENUGROUPWIDTHS lpMenuWidths) { if (m_InsertMenusFunc == null) { var fp = GetFunctionPointer(9); m_InsertMenusFunc = (InsertMenusFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InsertMenusFunc)); } return(m_InsertMenusFunc(m_ptr, hmenuShared, ref lpMenuWidths)); }