SandyG
June 8th, 2004, 04:31 AM
Hello Guru's
I have created CmyHeader class
from CHeaderCtrl class and owner draw the control.
Similarly i have a My List Ctrl which have draw with the help
of custom draw.
Now I want attach the My HeaderCtrl to my ListCtrl
How to do it.
I have wrote the the PreSubClass of ListCtrl as :-
m_HeaderCtrl.SubclassWindow(GetHeaderCtrl()-
>m_hWnd);
CListCtrl::PreSubclassWindow();
where m_HeaderCtrl is obj of My HeaderCtrl.
But Still I am Getting It .
Can Any Help Me out.
And Also suggest any site having OwnerDraw
topic for the MFC controls.
:thumb:
I have created CmyHeader class
from CHeaderCtrl class and owner draw the control.
Similarly i have a My List Ctrl which have draw with the help
of custom draw.
Now I want attach the My HeaderCtrl to my ListCtrl
How to do it.
I have wrote the the PreSubClass of ListCtrl as :-
m_HeaderCtrl.SubclassWindow(GetHeaderCtrl()-
>m_hWnd);
CListCtrl::PreSubclassWindow();
where m_HeaderCtrl is obj of My HeaderCtrl.
But Still I am Getting It .
Can Any Help Me out.
And Also suggest any site having OwnerDraw
topic for the MFC controls.
:thumb: