I would like to detect a right click on column headers. Actually, to be more
precise, I'm trying to implement a PopupMenu property for column headers.
However, I don't know if this can even be done. Right clicking a column
header does not cause a WM_NOTIFY message to be sent at all (which is where
LVN_COLUMNCLICK is detected and ColClick is called).
I'm pretty sure I can catch the WM_RBUTTONUP message for the ListView
window. However, I'd have to compare the mouse coordinates against the
rects of each column header.
I was wondering if anyone had a better idea?
Jon
Jon
Please do not post your question to several of the newsgroups at once, it
is against the forum guidelines (see http://www.borland.com/newsgroups/)
and just wastes resources (both server and human, somebody might spend time
on answering a post that has already been answered in another newsgroup).
Peter Below (TeamB) 10011...@compuserve.com)
No replies in private e-mail, please, unless explicitly requested!