|
Short story: Injects application into clipboard viewer chain.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Subclass Your Way Around VB's Limitations, Feature Article, VBPJ, September 1995
- Copy and Paste with RichTextBox, Ask the VB Pro, VBPJ, December 1997
This sample uses the following API calls:
Module Library Function CSFont.cls gdi
gdi32
user
user32DeleteObject
GetStockObject
DeleteObject
GetStockObject
SendMessage
SendMessageFClipView.frm user32 SetWindowLong MClipMain.bas gdi32
user32CreateDC
DeleteDC
GetDeviceCaps
GetSystemMetricsMClipView.bas gdi32
kernel32
shell32
user32GetEnhMetaFileHeader
GetMetaFileBitsEx
PlayEnhMetaFile
PlayMetaFile
SetMapMode
SetViewportExtEx
SetViewportOrgEx
SetWindowExtEx
SetWindowOrgEx
GlobalAlloc
GlobalFree
GlobalHandle
GlobalLock
GlobalSize
GlobalUnlock
lstrlen
RtlMoveMemory
DragQueryFile
DragQueryPoint
ChangeClipboardChain
CloseClipboard
CountClipboardFormats
EmptyClipboard
EnumClipboardFormats
GetClientRect
GetClipboardData
GetClipboardFormatName
GetClipboardOwner
GetClipboardViewer
GetOpenClipboardWindow
GetPriorityClipboardFormat
IsClipboardFormatAvailable
OpenClipboard
RegisterClipboardFormat
SendMessage
SetClipboardData
SetClipboardViewerMHookMe.bas kernel32
user32RtlMoveMemory
CallWindowProc
GetProp
GetWindowLong
RemoveProp
SetProp
SetWindowLongMLocaleInfo.bas kernel32 CompareString
FoldString
GetDateFormat
GetLocaleInfo
GetStringTypeA
GetSystemDefaultLangID
GetSystemDefaultLCID
GetTimeFormat
GetUserDefaultLangID
GetUserDefaultLCID
LCMapString
SetThreadLocaleDon't see what you're looking for? Here's a complete API cross-reference.
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution. Download ClipView.zip, 38Kb, Last Updated: Tuesday, June 22, 1999
The following resources may also be of interest:
- HookMe - Native subclassing technique for VB5/6. Extremely clean.