Window Enumeration Question

  • Thread starter Thread starter MoonLiver
  • Start date Start date
M

MoonLiver

I want to be able to go thru all of the windows and disable the start
button on each. it seems like this should work, but its only effecting
the foreground Window. Does everything work okay here?


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim myWindows() As Window
myWindows = WindowHelper.EnumerateTopWindows()
For i As Integer = 0 To UBound(myWindows)
HideStartIcon(myWindows(i).Handle)
Next
End Sub
End Class
Public Module dudex

<DllImport("aygshell.dll", EntryPoint:="SHFullScreen",
SetLastError:=True)> _
Private Function SHFullScreen( _
ByVal hwndRequester As IntPtr, _
ByVal dwState As Integer) As Boolean
End Function
Public Sub HideStartIcon(ByRef myHwnd As IntPtr)
Const SHFS_SHOWTASKBAR = &H1
Const SHFS_HIDETASKBAR = &H2
Const SHFS_SHOWSIPBUTTON = &H4
Const SHFS_HIDESIPBUTTON = &H8
Const SHFS_SHOWSTARTICON = &H10
Const SHFS_HIDESTARTICON = &H20

SHFullScreen(myHwnd, SHFS_HIDESTARTICON)
End Sub
End Module
 
Thre is no "start Icon" for every window on the Pocekt PC, just as there
isn't a Start button for every window on your PC. There is one, and it's
system wide.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Becasue when an app starts or is brought to the fore, the PPC OS reshows it.
The caption bar at the top of the screen isn't actually part of your app.
In fact it's in another process altogether.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
I know that moon looks just like cheese, but things ain't always what they
look like.
 
As I alluded to, you can hide it for your app. It's up to every other app
to hide it for itself. However, if you hide it from yours, the user
shouldn't be able to get to other apps.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
its a kiosk for launching programs :)



As I alluded to, you can hide it for your app. It's up to every other app
to hide it for itself. However, if you hide it from yours, the user
shouldn't be able to get to other apps.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Back
Top