Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API to copy the entire content of a form to clipboard
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00813685
Message ID:
00813695
Vues:
10
Check FoxPro examples (members area):

Copying picture of the active form to the Clipboard using Bitmap API functions
http://www.news2news.com/vfp/?example=91&function=42

Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
http://www.news2news.com/vfp/?example=404

Storing content of the Clipboard to a bitmap file
http://www.news2news.com/vfp/?example=189&function=42

How to print a FoxPro form
http://www.news2news.com/vfp/?example=158

This is how to copy a form to the clipboard step by step:
- obtain form's window handle and device context
- create compatible device context
- create compatible bitmap using form's width and height
- select compatible bitmap into compatible device context
- use BitBlt to copy image from form's device context to compatible device context
- open Clipboard
- empty Clipboard
- set Clipboard content using the handle to compatible bitmap
- close Clipboard
- release objects: compatible bitmap, compatible device conmtext, form's device context

API functions:
BitBlt
CloseClipboard
CreateCompatibleBitmap
CreateCompatibleDC
DeleteDC
DeleteObject
EmptyClipboard
GetFocus
GetWindowDC
GetWindowRect
OpenClipboard
ReleaseDC
SelectObject
SetClipboardData
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform