First off I thank all those posts that demonstrate how to use the message LVM_CREATEDRAGIMAGE. I am trying to create a listview in which an item can be dragged from line X column Y to line X column Z. If anybody has an example of this, I would love to see it.
It seems that this is possible as the %LVN_BEGINDRAG message is fired when dragging begins. I can get the initial coordinates from %WM_LBUTTONDOWN using %LVM_SUBITEMHITTEST. Then a hook can be put in the callback function to process the messages until %WM_LBUTTONUP. Am I wrong?
My latest issue is trying to create a drag image for this process. It appears that the message of LVM_CREATEDRAGIMAGE only works for the entire row (the list view item). I am looking for just the cell (the sub-item). Is this possible? If so how? Any thoughts, ideas, etc are appreciated!
It seems that this is possible as the %LVN_BEGINDRAG message is fired when dragging begins. I can get the initial coordinates from %WM_LBUTTONDOWN using %LVM_SUBITEMHITTEST. Then a hook can be put in the callback function to process the messages until %WM_LBUTTONUP. Am I wrong?
My latest issue is trying to create a drag image for this process. It appears that the message of LVM_CREATEDRAGIMAGE only works for the entire row (the list view item). I am looking for just the cell (the sub-item). Is this possible? If so how? Any thoughts, ideas, etc are appreciated!
Comment