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:
Converting twips to pixels and vice versa
Creating a window using CreateWindowEx function
Drawing standard Windows icons
Form Magnifier
GDI+ fun: roach-infested desktop
GDI+: Color Transparency
GDI+: Creating thumbnails to preview images in a directory
GDI+: Scrolling through large image using the mouse
How to make a VFP form fading out when released (GDI version)
How to view icons stored in executable files (Icon Viewer)
How to view icons stored in executable files (Icon Viewer) - II
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Placing On-screen Alert on top of all windows
Printing text on the client area of the main VFP window
Retrieving graphic capabilities of your display
Using GetNearestColor
GetDC
    Add comment     W32 Constants      Translate this page
The GetDC function retrieves a handle of a display device context (DC) for the client area of the specified window
Code examples:
How to make a VFP form fading out when released (GDI version)
Placing On-screen Alert on top of all windows
Converting twips to pixels and vice versa
How to view icons stored in executable files (Icon Viewer)
How to view icons stored in executable files (Icon Viewer) - II
GDI+: Scrolling through large image using the mouse
GDI+ fun: roach-infested desktop
Creating a window using CreateWindowEx function
GDI+: Creating thumbnails to preview images in a directory
Drawing standard Windows icons
Declaration:
 
HDC GetDC(
    HWND  hWnd     // handle of window  
   );
 
FoxPro declaration:
 
DECLARE INTEGER GetDC IN user32 INTEGER hwnd
 
 
Parameters:
hWnd
Identifies the window whose device context is to be retrieved
Return value:
If the function succeeds, the return value identifies the device context for the given window"s client area
Usage:
 
hWindow = _screen.HWnd
hDC = GetDC(hWindow)
? hDC
= ReleaseDC(hWindow, hDC)
 
My comment:


See also: GetWindowDC, WindowFromDC
Word Index links for the GetDC :
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: 2009-02-18 08:53:41
Visited in last 7 days: 124
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.231.49)
4.52 hrs.Function: 'GdipGetImageEncodersSize'
6.21 hrs.Example: 'How to play AVI file on the _screen'
7.48 hrs.Function: 'IsWindow'
15.76 hrs.Example: 'Converting twips to pixels and vice versa'
1 day(s)Function: 'waveOutOpen'
 Function: 'GetClipboardFormatName'
Function group: 'Clipboard'
 Example: 'Winsock: retrieving the standard host name and IP address for the local machine'
 Example: 'One more way to retrieve environment strings'
 Example: 'Subclassing CommandButton control to create BackColor property'
 Example: 'Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.'
Google
Advertise here!