Desktop Double Click While Hidden
Hello All,
I'm writing a program aimed at school PC desktops, so this is not a virus related question. It locks down the PC and only gives the kids access to what their teachers want them to be able to open. However, after I have hidden the shell, double clicking on the desktop will cause the start menu to open, why is this? It does not open while the shell isnt hidden.
I'v considered killing explorer instead of just hiding it, then re-run it on demand but I would rather just hide it.
Any Ideas? Thanks in advance.
Re: Desktop Double Click While Hidden
Could you post some code so that I have some idea of what is going on?
Re: Desktop Double Click While Hidden
VB Code:
Public Sub boolSetRestr(uFlag As Long)
Const KEY_TSKMGR As String = "Software\Microsoft\Windows\CurrentVersion\Policies\System"
Const KEY_DISRCL As String = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
Dim longReg As Long
Dim longKey As Long
Dim longTskHw As Long
Dim longShlHw As Long
longReg = SetDWORD(HKEY_CURRENT_USER, KEY_TSKMGR, "DisableTaskMgr", uFlag&)
longReg = SetDWORD(HKEY_CURRENT_USER, KEY_DISRCL, "NoViewContextMenu", uFlag&)
longTskHw = FindWindowEx(0, 0&, "Progman", vbNullString)
longShlHw = FindWindowEx(0&, 0, "Shell_TrayWnd", vbNullString)
Select Case uFlag
Case &H0: Call ShowWindow(longTskHw, &H1): Call ShowWindow(longShlHw, &H1)
Case &H1: Call ShowWindow(longTskHw, &H0): Call ShowWindow(longShlHw, &H0)
End Select
End Sub
Re: Desktop Double Click While Hidden
Re: Desktop Double Click While Hidden
that isn't a lot of code to go on. you are saying that when the system is locked down, and you double click on the desktop, the start menu opens?
I saw code that hides the start menu in the Chit Chat forum. It's size was set to 0,0. Maybe you want something like that?
I woul just open a full-screen form that has a menu or a few icons on it, so that the actual desktop is not in sight.