Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bringing the window to the front.
Message
From
14/11/2001 11:22:53
 
 
To
14/11/2001 11:03:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00581553
Message ID:
00581576
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform