Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Graphics
..msdn
GdipCreateFromHDC
GdipCreateFromHDC2
GdipCreateFromHWND
GdipDeleteGraphics
GdipDrawImageI
GdipDrawImageRectI
GdipDrawImageRectRectI
GdipDrawLineI
GdipDrawPieI
GdipDrawRectangle
GdipFillPieI
GdipFillRectangle
GdipGetDC
GdipGetDpiX
GdipGetDpiY
GdipGetPageScale
GdipGetPageUnit
GdipGetSmoothingMode
GdipReleaseDC
GdipResetWorldTransform
GdipRotateWorldTransform
GdipSetClipRectI
GdipSetPageScale
GdipSetPageUnit
GdipSetSmoothingMode
GdipSetTextRenderingHint
GdipSetWorldTransform
GdipTranslateWorldTransform
Code examples:
Custom GDI+ class
GdipGetDC
..msdn    Add comment     W32 Constants      Translate this page
Gets a handle to the device context associated with this Graphics object.
Code examples:
Custom GDI+ class
Declaration:
GpStatus WINGDIPAPI GdipGetDC(
    GpGraphics* graphics,
    HDC * hdc
)

FoxPro declaration:
DECLARE INTEGER GdipGetDC IN gdiplus;
    INTEGER   graphics,;
    INTEGER @ hdc

Parameters:
graphics
[in] Handle to a Graphics object obtained from GdipCreateFromHDC, GdipCreateFromHDC2, GdipCreateFromHWND or GdipGetImageGraphicsContext functions.

hdc
[out] Handle to the device context associated with this Graphics object.
Return value:
Returns 0 on success.
My comment:
Each call to the GdipGetDC should be paired with a call to the GdipReleaseDC of that same Graphics handle.

Do not make any API calls with this Graphics handle between the calls to GdipGetDC and GdipReleaseDC. If you attempt, the call will fail and will return ObjectBusy (4).
Word Index links for the GdipGetDC :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-15 11:37:52
Modified: 2004-07-15 11:45:07
Visited in last 7 days: 21
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.199.178)
10 sec.Function: 'ReleaseDC'
24 sec.Function: 'OpenEventLog'
36 sec.Function: 'GetRawInputDeviceInfo'
48 sec.Function: 'ReadConsole'
1 min.Function: 'CryptDecrypt'
1.18 min.Function: 'SetThreadDesktop'
1.38 min.Function: 'GetUrlCacheEntryInfo'
1.78 min.Function: 'MAPILogon'
1.98 min.Function: 'GetProcessPreferredUILanguages'
2.17 min.Function: 'GetSystemMetrics'
Google
Advertise here!