![]() |
![]() |
![]() |
![]() |
![]() |
FTP | ![]() |
![]() |
CCD | ![]() |
![]() |
Buscar | ![]() |
![]() |
Trucos | ![]() |
![]() |
Trabajo | ![]() |
![]() |
Foros | ![]() |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#2
|
||||
|
||||
Hola, prueba del siguiente modo:
(Añade las siguientes cabeceras: #include<utilcls.h> #include<mshtml.h>) Código:
void __fastcall TFrmMain::WebBrowser1CommandStateChange(TObject *ASender, int Command, WordBool Enable) { if (Command != ::CSC_UPDATECOMMANDS) return; String Lat, Lng; TComInterface<IHTMLDocument3> doc; TComInterface<IHTMLElement> tag; TVariant value; OleCheck(WebBrowser1->Document->QueryInterface<IHTMLDocument3>(&doc)); doc->getElementById(TVariant("LatValue"), &tag); if (tag) { tag->getAttribute(TVariant("value"), 0, value); Lat = value; } tag.Reset(); doc->getElementById(TVariant("LngValue"), &tag); if (tag) { tag->getAttribute(TVariant("value"), 0, value); Lng = value; } if (!Lat.IsEmpty() && !Lng.IsEmpty() && (Lat != Latitude->Text || Lng != Longitude->Text)) { Latitude->Text = Lat; Longitude->Text = Lng; AddLatLngToList(Lat, Lng); } } |
|
|
![]() |
||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Api de google , google maps en c++ builder 6 | JM1985 | C++ Builder | 1 | 01-04-2016 21:10:17 |
GPS y Google Maps | MAXIUM | Internet | 5 | 15-03-2011 18:15:05 |
Google Maps | madiazg | Varios | 4 | 26-10-2008 22:03:41 |
Google maps y php | halizia | PHP | 2 | 16-03-2007 17:04:49 |
Google Maps .es | Neftali [Germán.Estévez] | Noticias | 0 | 27-04-2006 13:32:54 |
![]() |
|