>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