Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "EnableMenuItem" in [All]

user32

.
Summary
.

static extern bool EnableMenuItem(IntPtr hMenu, uint uIDEnableItem,

.

Public Function EnableMenuItem(ByVal hMenu As IntPtr, ByVal wIDEnableItem As UInteger, ByVal wEnable As UInteger) As IntPtr

.

Constants used with Add/Check/EnableMenuItem:

.

    Private Shared Function EnableMenuItem(ByVal hMenu As IntPtr, ByVal wIDEnableItem As UInteger, ByVal wEnable As UInteger) As IntPtr

.

    EnableMenuItem(GetSystemMenu(Me.Handle, False), SC_CLOSE, MF_GRAYED)

.
Documentation
[EnableMenuItem] on MSDN

coredll

.

static extern uint EnableMenuItem(IntPtr hMenu, uint itemId, uint uEnable);

.

    EnableMenuItem(hMenu, 0, MF_BYPOSITION | MF_ENABLED);

.

    EnableMenuItem(hMenu, 1002, MF_BYCOMMAND | MF_GRAYED);

.
Documentation
[EnableMenuItem] on MSDN

 
Access PInvoke.net directly from VS: