Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.44 KB

CreateCompatibleDC.md

File metadata and controls

64 lines (48 loc) · 2.44 KB

Home

Function name : CreateCompatibleDC

Group: Device Context - Library: gdi32


Creates a memory device context (DC) compatible with the specified device.


Code examples:

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
Storing content of the Clipboard to a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Drawing Windows predefined bitmaps using the LoadBitmap functions
Displaying bitmap using the AlphaBlend function
Splash Screen for the VFP application
Bitmap Class for Visual FoxPro application
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)
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Subclassing CommandButton control to create BackColor property
Vertical Label control
How to convert a bitmap file to monochrome format (1 bpp)
Converting image file to .ICO file
How to make a VFP form fading out when released (GDI version)

Declaration:

HDC CreateCompatibleDC(
  HDC hdc   // handle to DC
);  

FoxPro declaration:

DECLARE INTEGER CreateCompatibleDC IN gdi32;
	INTEGER hdc  

Parameters:

hdc [in] Handle to an existing DC. If this handle is NULL, the function creates a memory DC compatible with the application"s current screen.


Return value:

If the function succeeds, the return value is the handle of a memory device context.


Comments:

After you are done with the memory device context, you must free it by using the DeleteDC function.