Classic VB: Description: ClipView
Description
Short story: Injects application into clipboard viewer chain.
Longer description from old site: click here.
To be edited...
Published
This sample, or the one from which it originally derived, was published (or at least
peripherally mentioned) in the following article(s):
APIs Usage
This sample uses the following API calls:
| Module |
Library |
Function |
| CSFont.cls |
gdi
gdi32
user user32 |
DeleteObject GetStockObject DeleteObject GetStockObject SendMessage SendMessage |
| FClipView.frm |
user32 |
SetWindowLong |
| MClipMain.bas |
gdi32
user32 |
CreateDC DeleteDC GetDeviceCaps GetSystemMetrics |
| MClipView.bas |
gdi32
kernel32
shell32
user32
|
GetEnhMetaFileHeader 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 SetClipboardViewer |
| MHookMe.bas |
kernel32 user32
|
RtlMoveMemory CallWindowProc GetProp GetWindowLong RemoveProp SetProp SetWindowLong |
| MLocaleInfo.bas |
kernel32
|
CompareString FoldString GetDateFormat GetLocaleInfo GetStringTypeA GetSystemDefaultLangID GetSystemDefaultLCID GetTimeFormat GetUserDefaultLangID GetUserDefaultLCID LCMapString SetThreadLocale |
Download
|
|
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, 22 June 1999
|
See Also
The following resources may also be of interest:
- HookMe - Native subclassing technique for VB5/6. Extremely clean.
|