Jump to content
Sign in to follow this  
SaphuA

Hiding desktop

Recommended Posts

SaphuA

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?

Share this post


Link to post
Share on other sites
maqleod

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×