BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GIS ActiveX management

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Michele Santucci
Guest





PostPosted: Fri Oct 22, 2004 7:37 am    Post subject: GIS ActiveX management Reply with quote



Hello NG,

I imported an activex control (ESRI MO 2.3) 'creating' a TMap component.
This component have a AfterTrackingLayerDraw event whose handler is defined
in this way:

AfterTrackingLayerDraw(TObject *Sender,
OLE_HANDLE hDC)
{
....
}

Since I need to draw polygons and lines over this component I asked ESRI
hints about that and they stated that it's possible using the hDC handle by
Windows API calls... which APIs are they meaning? Which functions/methods I
have to use?
Which chapter of the Borland C++ User Manual describe that?

--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. 0187564080
Via Fontevivo 21/M
19126 La Spezia
===================


Back to top
Allan Hansen
Guest





PostPosted: Thu Oct 28, 2004 6:47 am    Post subject: Re: GIS ActiveX management Reply with quote



Have a look at TCanvas::Handle, assigning the hDC to it should enable you to
use TCanvas' methods for drawing.

Allan

"Michele Santucci" <michele.santucci (AT) celinavio (DOT) it> wrote

Quote:
Hello NG,

I imported an activex control (ESRI MO 2.3) 'creating' a TMap component.
This component have a AfterTrackingLayerDraw event whose handler is
defined
in this way:

AfterTrackingLayerDraw(TObject *Sender,
OLE_HANDLE hDC)
{
....
}

Since I need to draw polygons and lines over this component I asked ESRI
hints about that and they stated that it's possible using the hDC handle
by
Windows API calls... which APIs are they meaning? Which functions/methods
I
have to use?
Which chapter of the Borland C++ User Manual describe that?

--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. 0187564080
Via Fontevivo 21/M
19126 La Spezia
===================




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.