Re: Still cant position Desktop icons (Win)
- Posted by Al Getz <Xaxo at aol.com> Oct 26, 2005
- 499 views
Bernie Ryan wrote: > > Al Getz wrote: > > > > Hello again, > > > > > > A while back i was talking about how to position desktop icons on > > the desktop in case a virus or other reason the icons were moved > > around or replaced by another program. > > > > So far still no success, so i was wondering if anyone else had found > > a way to do this yet? It's easy to get the icons back on screen, > > with all the info they contain, but so far still no way to *position* > > them back to where they were at some point. Note that i want to do > > this through a Eu program. If anyone found anything please mention it. > > > > > > Take care, > > Al > > > > And, good luck with your Euphoria programming! > > > > My bumper sticker: "I brake for LED's" > > Al: > > First you would have to be sure that auto-arrange icons is > turn-off on the screen context menu. > Then remember that the desktop is really a window > and the icons are child windows. So you should be able > to get each icon handle by enumerating the child windows. > From the child handles you should be able to discover the > location of each and create and keep a list. > > Bernie > > My files in archive: > w32engin.ew mixedlib.e eu_engin.e win32eru.exw > > Can be downloaded here: > <a > href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a> Hi Bernie, Well, i dont have any problem 'getting' the locations, the problem is there is no function i can call to place them where i want them. For example: MoveDesktopIcon(id,100,200) I can get the (100,200) part just fine, just cant make it move there or change it to say (200,300) . I think i've found one possible way so far, but it's not something i want to have to do. That is, modify the registry hive that controls the icon positions so that during bootup it reads them and positions the icons appropriately. Unfortunately, this requires changing the hive from another system such as DOS or bootup in another Win system in order to make the mods to the hive. This means i'd have to boot up in some other system first, then reboot to Win XP. I was hoping to avoid this entirely so im looking for another method. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"