FoxPro/Visual FoxPro - ocultar boton de inicio de windows

   
Vista:

ocultar boton de inicio de windows

Publicado por jose camilo (688 intervenciones) el 25/08/2009 21:33:34
este codigo en VB oculta el boton de inicio alguien sabe como se haria en VFP

Private Declare Function ShowWindow Lib "user32" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias _
"FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Property Let StartButtonVisible(bVisible As Boolean)
Dim lTaskbarHandle As Long
Dim lStartButtonHandle As Long

lTaskbarHandle = FindWindow("Shell_TrayWnd", "")
lStartButtonHandle = FindWindowEx(lTaskbarHandle, 0, "Button", vbNullString)

If bVisible Then
ShowWindow lStartButtonHandle, 5
Else
ShowWindow lStartButtonHandle, 0
End If
End Property
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder