SaphuA Posted April 2, 2009 Posted April 2, 2009 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? http://www.saphua.com/
maqleod Posted April 2, 2009 Posted April 2, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now