Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Right click in ListView column header

78 views
Skip to first unread message

Jon Robertson

unread,
May 19, 2000, 3:00:00 AM5/19/00
to
This is a cross between a WINAPI question and a VCL question. Hopefully
someone can help regardless.

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 Robertson

unread,
May 19, 2000, 3:00:00 AM5/19/00
to
My idea for catching WM_RBUTTONUP doesn't work either. The message never
appears when right clicking on the column header. :(

Jon

Peter Below (TeamB)

unread,
May 20, 2000, 3:00:00 AM5/20/00
to
Duplicate post answered in delphi.vcl.components.writing.

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!


0 new messages