Window Enumeration Question

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
 
C

Chris Tacke, eMVP

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
 
M

MoonLiver

Then why is it I can hide the icon, open up a new window and the start
icon is there?
 
C

Chris Tacke, eMVP

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
 
A

Alex Feinman [MVP]

I know that moon looks just like cheese, but things ain't always what they
look like.
 
C

Chris Tacke, eMVP

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
 
M

MoonLiver

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top