1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| extern "C" __stdcall __declspec(dllexport,dllimport) int Show(HWND parentForm, HWND Appli, HWND* oldAppli, TForm** fenetre)
{
*oldAppli = Application->Handle;
Application->Handle=Appli;
TForm1 *MyForm=new TForm1(NULL);
*fenetre = MyForm;
MyForm->Left = 0;
MyForm->Top = 0;
if (parentForm) MyForm->ParentWindow=parentForm;
MyForm->Show();
}
extern "C" __stdcall __declspec(dllexport,dllimport) int Fermer(HWND oldAppli, TForm* fenetre)
{
Application->Handle = oldAppli;
delete fenetre;
} |
Partager