Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoid Start in WIN95 or NT
Message
From
23/04/1998 08:51:48
 
 
To
23/04/1998 03:31:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00094227
Message ID:
00094286
Views:
22
>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
Map
View

Click here to load this message in the networking platform