Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bringing the window to the front.
Message
De
14/11/2001 11:22:53
 
 
À
14/11/2001 11:03:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00581553
Message ID:
00581576
Vues:
19
This message has been marked as the solution to the initial question of the thread.
Colin,
Try something like the following:
SET LIBRARY TO FoxTools ADDITIVE

lnHWnd = MainHwnd()

ShowWindow(lnHWnd, 3) && maximized

PROCEDURE ShowWindow

LPARAMETER tnHwnd, tnMode

#DEFINE cnNormal    1
#DEFINE cnMinimized 2
#DEFINE cnMaximized 3

IF TYPE("tnMode") <> "N" OR NOT INLIST(tnMode, cnNormal, cnMinimized, cnMaximized)
	tnMode = cnNormal
ENDIF

DECLARE INTEGER ShowWindow IN WIN32API integer, integer

=ShowWindow(tnHwnd, tnMode)
HTH
>i intend to write a little app thats purpose will be to sit in the background on 1 pc and monitor one foxpro table in an accounting system for new entry's. it will check the entry for validity.
>
>i intend to have this app run minimised and what i would like to have it do is pop itself up over anything else running in order that the user can be warned of an exception situation.
>
>i can do all of this except the bringing itself to the front of other apps.
>
>anyone got any clues --- a windows api call i expect ?
>
>regards
>
>colin burton
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform