Jump to content

Recommended Posts

Posted

Hi,

I'm trying to hide my desktop using this function I found on the forum:

func _ShowHideIcons($sState)
    local $hParent = WinGetHandle("Program Manager")
    local $hListView = ControlGetHandle($hParent, "", "SysListView321")
    WinSetState($hListView, "", $sState)
endfunc

However it only appears to be working randomly. Sometimes it works, sometimes it doesn't and sometimes it only hides and doesn't show.

Why could this be?

Posted

not sure why it is only sometimes, you really should add some error checking to see what exactly is failing

you can try this to get the desktop window's handle instead:

local $hParent = _WinAPI_GetDesktopWindow()

[u]You can download my projects at:[/u] Pulsar Software

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...