J'ai fais un programme pour lister et effectuer des opérations sur les
fenêtre. Voici le code pour afficher une fenetre (si elle est cachée).
(j'utilise borland c++)
void __fastcall TForm1::Button2Click(TObject *Sender)
{
HANDLE hdl;
if (ListBox1->ItemIndex >= 0 )
{
hdl = FindWindow(ListBox1->Items[ListBox1->ItemIndex], NULL);
ShowWindow(hdl, SW_SHOW);
}
else
MessageBox(Form1->Handle,"Veuillez sélectionner une fenêtre.","Erreur", MB_OK | MB_ICONERROR);
}
il me dit impossible de convertir string to char* a cette ligne
hdl = FindWindow(ListBox1->Items[ListBox1->ItemIndex], NULL);
Aidez moi !