Using Win32 functions in Visual FoxPro Image Gallery
Device Context
..msdn
ChangeDisplaySettings
CreateCompatibleDC
CreateDC
DeleteDC
DeleteObject
EnumDisplayDevices
EnumDisplaySettings
GetDC
GetDeviceCaps
GetObject
GetObjectType
ReleaseDC
SelectObject
Code examples:
Bitmap Class for Visual FoxPro application
Converting image file to .ICO file
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Displaying bitmap using the AlphaBlend function
Drawing Windows predefined bitmaps using the LoadBitmap functions
How to convert a bitmap file to monochrome format (1 bpp)
How to copy the image of a form to the Clipboard using Bitmap API functions
How to make a VFP form fading out when released (GDI version)
How to print FoxPro form
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)
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Splash Screen for the VFP application
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
Subclassing CommandButton control to create BackColor property
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Vertical Label control
CreateCompatibleDC
..msdn    Add comment     W32 Constants      Translate this page
Creates a memory device context (DC) compatible with the specified device.
Code examples:
Storing content of the Clipboard to a bitmap file
Splash Screen for the VFP application
Vertical Label control
How to put a horizontal text scrolling on the form (a news line, marquee)
How to make a VFP form fading out when released (GDI version)
Storing screen shot of a form to bitmap file
How to put a vertical text scrolling on the form (a movie cast)
Subclassing CommandButton control to create BackColor property
How to print FoxPro form
How to convert a bitmap file to monochrome format (1 bpp)
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.
My comment:
After you are done with the memory device context, you must free it by using the DeleteDC function.
Word Index links for the CreateCompatibleDC :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2001-11-26 16:02:23
Visited in last 7 days: 74
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.92.194.75)
14 sec.Function: 'CreateURLMonikerEx'
29 sec.Function: 'GlobalAlloc'
46 sec.Function: 'GetMenuItemID'
1.02 min.Function: 'WSASend'
1.28 min.Function: 'GdipNewInstalledFontCollection'
1.53 min.
Function group: 'Path'
1.8 min.Function: 'GdipGetPropertyIdList'
2.07 min.Function: 'SQLAllocHandle'
2.33 min.Function: 'SearchPath'
2.62 min.Function: 'CreateMD5SSOHash'
Google
Advertise here!