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 "AddClipboardFormatListener" in [All]

Constants

1: WM
.
WM_CLIPBOARDUPDATE 0x031D The WM_CLIPBOARDUPDATE message signfies that clipboard contents have changed. To listen for this message, create a Clipboard Format Listener using the AddClipboardFormatListener() API. This has replaced the old SetClipboardViewer() API, and is a simpler, more efficient method of monitoring for clipboard changes.
.
WM_DRAWCLIPBOARD 0x308 The WM_DRAWCLIPBOARD message is sent to the first window in the clipboard viewer chain when the content of the clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard. (NOTE: Clipboard Viewer Window is outdated. It has been replaced with the AddClipboardFormatListener() API, which doesn't require maintaining the messages sent to the chain of viewer windows.

user32

.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

Public Shared Function AddClipboardFormatListener(hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)>Boolean

.

Declare Function AddClipboardFormatListener Lib "user32.dll" (hWnd As Long) As Boolean

.

AddClipboardFormatListener is much simpler than setting up a clipboard viewer window. The Format listener doesn't require maintaining the chain of clipboard notifications. The AddClipboardFormatListener() API was added with Windows XP and Windows Server 2008.

.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

AddClipboardFormatListener(this.Handle);

.
Documentation
.

static extern bool AddClipboardFormatListener(IntPtr hwnd);

.

AddClipboardFormatListener(this.Handle);


 
Access PInvoke.net directly from VS: