Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 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));
 }