Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to obtain the device context in a report???
Message
 
To
13/05/2005 10:22:48
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01013847
Message ID:
01013905
Views:
21
>Dear Sirs:
>
>I am using the new LISTENER class in VFP9. I need to intercept the RENDER call and modify an object rendered using the GDI+. But i'm require the device context (hDC) of the device to use with MapObjects (GIS activex). How to obtain the hDC???
>
>Thanks and sorry for my english
>
>Edmundo Ríos Miranda


Hi Edmundo,
Don't have VFP9, but found this on MSDN. Hope this helps.


Class Library: _GDIPlus.vcx
Class: gpGraphics
Method: GetHdc()
Obtains a Windows device context handle to enable drawing on the gpGraphics surface with Windows GDI functions.
Syntax: hDC = THIS.GetHdc()
Return Values: Integer handle to the GDI device context, or null (.NULL.) on error.
Parameters: none.
Remarks: This method is equivalent to the .NET Graphics.GetHdc. The handle must be released with ReleaseHdc() after use.

-Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform