On Sat, 28 Aug 1999 17:52:54 +0200, "Brian Hansen"
Quote:
>Hey,
>I'm working on a project, where i would like to arrange the icons on the
>desktop, but not only use the Auto arrange function.
>I need to be able to arrange some of the icons to the right and fx some to
>the bottom of the screen.
>Any idears ???
Brian,
The desktop icons are items in a regular ListView control. So you can
change their osition using some ListView related messages and a couple
of API functions.
First get the ListView hwnd using FindWindow and/or FindWindowEx.
Then use the LVM_GETITEMPOSITION and LVM_SETITEMPOSITION messages to
move the icons around.
Mattias