
coloured LISTVIEW elements using subclassing - doesn`t work when using tabctl32.ocx
hi
my application uses a listview. i wanted a predefined list element to appear
in bold red when the list was displayed.
in order to do this i started looking at subclassing - i found the following
example.
http://www.*-*-*.com/
this is written by "Bryan Stafford of New Vision Software?"
anyway - the example he provides works pretty well - i don`t fully
understand the intrices of subclassing .. but i`ve modified the code to suit
my purposes.
however if i add an SSTAB control to the example codes form .. which
consists of 3 tabs .. and then move the listview "lvCustomDraw" onto the
second tab.
running the code - the listview elements are no longer changed ...
i suspected that the wrong handle was being passed to the subclassing ....
g_addProcOld = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf WindowProc)
i tried lvCustomDraw.hWnd - but this made no difference.
Can anyone explain to me what i`m doing wrong , what needs to be done..
many thanks in advance
DAVE