APL+Win NM_CUSTOMDRAW

11 views
Skip to first unread message

Rex Swain

unread,
Jan 22, 2024, 11:10:04 AM1/22/24
to APLWin
Does anyone have an APL function that subclasses a control and then creates a filter for NM_CUSTOMDRAW messages?  I cannot get it to work.  I think if I saw any working example I might see something that I am missing!

I am trying to change the color of the header captions of a Listview (in Report mode).  Apparently this is completely different than changing the cells in the body of the Listview, and requires NM_CUSTOMDRAW.

/ Rav

unread,
Jan 22, 2024, 12:41:13 PM1/22/24
to APLWin
I've have a function that does this for ListViews in APL+Win.  It wasn't easy to get it to work; it's somewhat complicated.  It not only handles coloring of the column headers, it also handles "proper" highlighting of the selected ListView row even when the ListView is unfocused.  I'm pretty sure that it only currently works for single (not multiple) item selection.  I have to leave right now for some appointments, but I'll email it to you later today.  p
Reply all
Reply to author
Forward
0 new messages