a=WindowFromPoint(Mouse->CursorPos); char szTitle[41]={0}; GetWindowText(a, szTitle, 40); Edit1->Text=szTitle;