Hello all
I have looked to the sources again. and now I hope I have found something to start at least thinking about how to hack into the clist.
I am interested in this three messages:
Code:
#define CLM_GETITEMTEXT (CLM_FIRST+21) //wParam=hItem, lParam=(char*)pszStr, max 120 bytes
#define CLM_GETSELECTION (CLM_FIRST+23) //returns hItem
#define CLM_SELECTITEM (CLM_FIRST+26) //wParam=hItem
Now here goes my concept:
each control has some event which is fired to notify that something has been changed. for example I believe combo boxes and list views have something like onchange event. Does something like this exist in the clistcontrol class here in miranda? for example when a contact is selected? I am just guessing that message CLM_SELECTITEM is sent upon selecting any of the contacts. is this true?
if yes, I hope I can extract the contact name and other information by processing hitem received from above call and sending it as a CLM_GETITEMTEXT message.
If CLM_SELECTITEM is not sent internally so I am unable to hook into it is it possible to pool for the selected item by sending CLM_GETSELECTION message?
And finally the most problematic thing. am I able to send or dispatch these messages from any other application besides miranda-im?
Please excuse for any wrong assumptions I am just a beginner. I am sure I am able to figure it out by studying but now I think I need some help or a couple of corrections. So all comments on this are welcome.
@pescuma WM_copydata is used to pass information not extract them... - as I am aware. so clist has to be modified for this to work.. or am I wrong once again?
Bookmarks