General information
Category:
Windows API functions
>How can I avoid the users access the start bar in WIN95 or NT while they are working in a VFP EXE.
It isn't always the greatest idea to hide that window, but assuming your aware of this, the following code will hide / show the task bar, be advised even with the window 'hidden' users can still activate the START menu by pressing ctrl + esc, maybe someone else can explain how to hide or disable that:
DECLARE Integer FindWindow in WIN32API;
STRING @lpBuffer,;
STRING lpctstr
ihwind = FindWindow('Shell_traywnd','')
#DEFINE SHOWWINDOW 64
#DEFINE HIDEWINDOW 128
DECLARE Integer SetWindowPos IN USER32.DLL;
INTEGER hwnd,;
INTEGER hWndInsertAfer,;
INTEGER x,;
INTEGER y,;
INTEGER cx,;
INTEGER cy,;
INTEGER wFlags
? SetWindowPos(ihwind,0,0,0,0,0,SHOWWINDOW)
Hope that helps
Robert Horkay
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only