Okay, so I am new to python win32 development and I am trying to find the
location of icons on the desktop. I understand that the desktop is just a
listview control so theoretically I should be able to use this code-
from commctrl import *
from win32gui import *
from ctypes import *
class POINT(Structure):
_fields_=[('x',c_long),('y',c_long)]
desk=1435653 # Handle to the desktop. I just made this up for the example
here.
SendMessage(desk,LVM_GETITEMPOSITION,0,POINT())
I think this is supposed to return the point that the icon in index 0 is
located at, but when I try to use this, explorer crashes. I have researched
this online and found similar predicaments that other people have had where
explorer crashed using GETITEMPOSITION, but those examples are in other
programming languages that I can't read and don't understand, and I haven't
found any examples in Python on how to overcome this problem, if indeed it is
possible.
Any help?
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32