Group: Bitmap - Library: gdi32
Placing an arbitrary rectangular area of main VFP window on the Clipboard
How to copy the image of a form to the Clipboard using Bitmap API functions
How to print FoxPro form
Storing screen shot of a form to bitmap file
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Subclassing CommandButton control to create BackColor property
Vertical Label control
How to make a VFP form fading out when released (GDI version)
HBITMAP CreateCompatibleBitmap(
HDC hdc, // handle to DC
int nWidth, // width of bitmap, in pixels
int nHeight // height of bitmap, in pixels
);
DECLARE INTEGER CreateCompatibleBitmap IN gdi32;
INTEGER hdc,;
INTEGER nWidth,;
INTEGER nHeight
hdc [in] Handle to a device context.
nWidth [in] Specifies the bitmap width, in pixels.
nHeight [in] Specifies the bitmap height, in pixels.
If the function succeeds, the return value is a handle to the bitmap.
When created the bitmap can be placed on a device context using SelectObject function. When you no longer need the bitmap, call the DeleteObject function to delete it.