Пример #1
0
        public static void RemoveMenu(IntPtr hWnd)
        {
            IntPtr menu          = WinAPI.GetMenu(hWnd);
            int    menuItemCount = WinAPI.GetMenuItemCount(menu);

            for (int i = 0; i < menuItemCount; i++)
            {
                WinAPI.RemoveMenu(menu, 0u, 5120u);
            }
            WinAPI.DrawMenuBar(hWnd);
        }