Results 1 to 5 of 5

Thread: Desktop Double Click While Hidden

  1. #1

    Thread Starter
    Addicted Member Luke K's Avatar
    Join Date
    Jun 2004
    Location
    Perth, Australia
    Posts
    183

    Question 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.
    Artificial Intelligence At War! - The best game of its genre
    Program your own robot and watch it fight in 3d!
    Droidarena 3

    If I have been useful, please Rate My Post

    Support FireFox -
    Microsoft Visual Studio .NET Professional 2003
    Microsoft Visual Studio 6, Enterprise Edition
    Microsoft Windows XP Professional, Service Pack 2

  2. #2
    Addicted Member
    Join Date
    Nov 2004
    Posts
    171

    Re: Desktop Double Click While Hidden

    Could you post some code so that I have some idea of what is going on?
    Sherminator ~ I'll be back.

  3. #3

    Thread Starter
    Addicted Member Luke K's Avatar
    Join Date
    Jun 2004
    Location
    Perth, Australia
    Posts
    183

    Re: Desktop Double Click While Hidden

    VB Code:
    1. Public Sub boolSetRestr(uFlag As Long)
    2.  
    3.     Const KEY_TSKMGR As String = "Software\Microsoft\Windows\CurrentVersion\Policies\System"
    4.     Const KEY_DISRCL As String = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    5.     Dim longReg As Long
    6.     Dim longKey As Long
    7.     Dim longTskHw As Long
    8.     Dim longShlHw As Long
    9.  
    10.     longReg = SetDWORD(HKEY_CURRENT_USER, KEY_TSKMGR, "DisableTaskMgr", uFlag&)
    11.     longReg = SetDWORD(HKEY_CURRENT_USER, KEY_DISRCL, "NoViewContextMenu", uFlag&)
    12.  
    13.     longTskHw = FindWindowEx(0, 0&, "Progman", vbNullString)
    14.     longShlHw = FindWindowEx(0&, 0, "Shell_TrayWnd", vbNullString)
    15.  
    16.     Select Case uFlag
    17.         Case &H0: Call ShowWindow(longTskHw, &H1): Call ShowWindow(longShlHw, &H1)
    18.         Case &H1: Call ShowWindow(longTskHw, &H0): Call ShowWindow(longShlHw, &H0)
    19.     End Select
    20.  
    21. End Sub
    Artificial Intelligence At War! - The best game of its genre
    Program your own robot and watch it fight in 3d!
    Droidarena 3

    If I have been useful, please Rate My Post

    Support FireFox -
    Microsoft Visual Studio .NET Professional 2003
    Microsoft Visual Studio 6, Enterprise Edition
    Microsoft Windows XP Professional, Service Pack 2

  4. #4

    Thread Starter
    Addicted Member Luke K's Avatar
    Join Date
    Jun 2004
    Location
    Perth, Australia
    Posts
    183

    Re: Desktop Double Click While Hidden

    *bump*
    Artificial Intelligence At War! - The best game of its genre
    Program your own robot and watch it fight in 3d!
    Droidarena 3

    If I have been useful, please Rate My Post

    Support FireFox -
    Microsoft Visual Studio .NET Professional 2003
    Microsoft Visual Studio 6, Enterprise Edition
    Microsoft Windows XP Professional, Service Pack 2

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width