Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Files using ShFileOperation
Message
From
17/02/2003 14:26:32
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00727693
Message ID:
00754203
Views:
37
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
Previous
Reply
Map
View

Click here to load this message in the networking platform