Exemple #1
0
        public void UncheckMenuItems(params int[] ids)
        {
            var windowMenuHandle = GetSystemMenu(WindowHandle, false);

            foreach (var id in ids)
            {
                User32.CheckMenuItem(windowMenuHandle, id, Constants.MF_UNCHECKED);
            }
        }
Exemple #2
0
        public void CheckMenuItem(int id, bool check)
        {
            var windowMenuHandle = GetSystemMenu(WindowHandle, false);

            User32.CheckMenuItem(windowMenuHandle, id, check ? Constants.MF_CHECKED : Constants.MF_UNCHECKED);
        }