Ver Mensaje Individual
  #5  
Antiguo 07-04-2022
Avatar de escafandra
[escafandra] escafandra is offline
Miembro Premium
 
Registrado: nov 2007
Posts: 2.197
Reputación: 20
escafandra Tiene un aura espectacularescafandra Tiene un aura espectacular
Estoy viendo que este es el foro de C++ Builder así que por si hubiese dificultades voy a traducir el código que expone ecfisa:


Código PHP:
String GetListViewSubItem(TListView *LV)
{
  
LVHITTESTINFO Info;
  
TListItem *Item;
  
int Index;
  
String Result "";

  
Info.pt LV->ScreenToClient(Mouse->CursorPos);
  
Index   ListView_SubItemHitTest(LV->Handle, &Info);
  if(
Index != -1){
    
Item LV->Items->Item[Index];
    if(
Info.iSubItem == 0)
      
Result Item->Caption;
    else
      
Result Item->SubItems->Strings[Info.iSubItem-1];
  }
  return 
Result;

Código PHP:
void __fastcall TForm1::ListViewClick(TObject *Sender)
{
  
Caption GetListViewSubItem(ListView);  


Saludos.
Responder Con Cita