Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping a FOXPRO APP always on top
Message
 
To
22/09/1997 13:21:40
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051057
Message ID:
00051192
Views:
29
>Is there any way to programatially disable the "ALT-TAB" key combination to prevent users from leaving the current application ?
>Thanks in advance ..

Rob,

While I haven't used this in Win95 yet, I've used the following to keep a DOS window always on top.

DECLARE INTEGER SetWindowPos IN Win32API;
INTEGER hwnd, INTEGER hwndInsertAfter,;
INTEGER x, INTEGER y, INTEGER cx, INTEGER cy,;
INTEGER fuFlags

Here's what you need in the way of the parameters:

hwnd - Get this from the FOXTOOLS MainHWnd() function.
hwndInsertAfter - Set to minus one (-1).
x - horizontal position of the window
y - vertical position of the window
cx - width of the window
cy - height of the window
fuFlags - 64

Note that with these settings no other window can be brought over the assigned. This can be a problem when dealing with certain Windows functions. For example, if the printer runs out of paper, the dialog telling the user this won't come in front of your window.

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform