Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to bring _screen to top when app received drag/drop
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00783988
Message ID:
00784063
Vues:
15
>Any suggestions on the best way to bring a VFP app to top when it it receives a drag-drop yet is partially obscured by other programs' windows? The issue I'm dealing with is:
>- Files are dragdropped from windows explorer onto my VFP form
>- Often when this occurs, much of the entire VFP application window is covered by the explorer window. This often includes much of the target of the DD operation.
>- I want to present a confirmatory message (such as with messagebox) for the user to let him know just what was received in the drop operation
>- If I try this during the OLEDragDrop event, it doesn't work. Apparently because the DD operation has not completed until the OLEDragDrop event has returned, I cannot get the VFP window to come to top. The source of the DD operation will not yield.
>- This causes my notification message to be partially or completely obscured until I actually click on the VFP app, which then brings the app to top.
>
>Suggestions? Thanks very much.

Mark,

You may try SetForegroundWindow API #12720.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform