Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy Files using ShFileOperation
Message
De
17/02/2003 14:26:32
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00727693
Message ID:
00754203
Vues:
33
Good Afternoon Sergey

How do I put the Win API "Copying" window inside the active form?

I was following this thread and tried your sample code. I have placed it in a vcx and modified accordingly, and it works fine. But I do have a question.

The Win Copy message/progress Window is opening in the main VFP window; which I think is consistent with your code:
NumToLONG(_screen.hWnd)

However, if I change it to:
NumToLONG(frmMyform.hWnd)
(and no other changes)

Then the line: lnRetCode = SHFileOperation(@lcFileOpStruct)
return an error "Variable 'lcFileOpStruct' is not found." Note that from the debugger Trace window an integer value is assigned to NumToLONG(frmMyform.hWnd).

So how do I get the Win Copying window to run inside the calling/active form?

Thanks in advance.

Don Lowrey
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform