Delphi Application.CreateForm is the Handle Unique for each Form?
问题 I have a TreeList , with many Items , each item has it's own unique ID . I allow the user to open multiple IDs at once . But I would like to prevent the user from opening the same ID twice . So I thought about creating a simple Dynamic Array where I store which TreeList ID is connected to which Form HWND . If I find a ID on my list with a Matching HWND, then I simply bring the Form which is already Created to Foreground. Application.CreateForm(TChapter, Chapter); Chapter.PopupParent:=Main;