This is a discussion on Why this strange behaviour regarding subclassing controls - Programmer ; hi
I am unable to solve this after spending lot of time ,Can someon ehelp
me out here
I get assertion here and the window becomes NULLL after assigning in
the OnIntialUpdate of formView.--afxwin2.inl
// CWnd
_AFXWIN_INLINE CWnd: perator HWND() ...

Why this strange behaviour regarding subclassing controls

hi
I am unable to solve this after spending lot of time ,Can someon ehelp
me out here
I get assertion here and the window becomes NULLL after assigning in
the OnIntialUpdate of formView.--afxwin2.inl
// CWnd
_AFXWIN_INLINE CWnd:perator HWND() const
{ return this == NULL ? NULL : m_hWnd; }

The problem is subclassing controls and the communication between each
subclassed control
In a view
there ia
One List Control -
One TabControl and inside the tabcontrol there are 2 list controls
These 2 list controls are in a Dialog1 - CTab1

The communication happens fine between the list control and the list
control which is inside the tab control.

The communication fails between the 2 list controls inside the tab
control.
Am i missing any basics here?
Pls guide
Here is the code for data exchnage and when I click the first list
control it comes in DDX exchange but not the when I clcik inside the
tab control.
I get assertion error

Re: Why this strange behaviour regarding subclassing controls

One more thing I observed when I keep a break point at DoDataExchange
,after calling the function
m_myListSeriesCtrl.SetTabToFill(tab1); //First List control of tab
control
m_ResultsCtrl.SetTabToFill(tab1); //Second List control of tab control

this shoudl be called twice ! Right this is getting called only 1 time