Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide-and-Seek with MessageBox()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00576823
Message ID:
00577445
Vues:
19
Will -

That seems to do the trick - thanks!

Scott

>Scott,
>
>I don't know the real problem you're having, but you can butcher this if you must :)
>
>Just add 4096 to the second messagebox parameter, this forces the window to be system modal.. ie it goes on top of everything
>
>HTH
>
>Will
>
>>Hello All -
>>
>>I've got a VFP6 application that makes use of the MESSAGEBOX() function to provide feedback to the user when a given activity is completed. In some cases, the MESSAGEBOX ends up behind the VFP window making the user think that the app has hung. In reality, the MESSAGEBOX is still waiting for a response, so if for example ENTER is pressed, the default button is chosen and control returns to my app. Alt-Tabbing off the app and back causes the MESSAGEBOX window to appear again.
>>
>>The usual place this happens is right after a call has been made to zip/unzip a file with the DynaZip DLLs or encrypt/decrypt a file using calls to the CryptoAPI. It happens regularly on Win2000 and also on NT.
>>
>>Has anyone seen this behavior? Any suggestions for getting it to work normally? I do know about alternates to MESSAGEBOX, and have even written a simple one myself in case I can't get MESSAGEBOX to work, but would prefer to use MESSAGEBOX if possible since it's a known quantity.
>>
>>Thanks,
>>Scott
Scott King
The Support Source Corporation
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform