
subclassing a MFC subclassed window
Yes it can be done. There is an excellent class appropriately named,
CSubclassWnd in MSDN/MSJ. Search for that in MSDN and there are few examples
along with it. All source can be downloaded from www.microsoft.com/msj.
--
Ajay Kalra [MVP - VC++]
Note: Please post all replies to newsgroup only.
Quote:
> Hello,
> I'm trying to subclass a listview in a executable that call my dll.
> From within the dll I call SetWindowLong function in order to subclass
> the listview. To get the listview handle I use FindWindowEx function
> (looking for "SysListView32" class name). Once I've got the window
> handle I make a call to SetWindowLong to set the new procedure for the
> listview. I know for sure that the listview is subclassed via MFC in
> the App executable. What I get after calling SetWindowLong is a wrong
> behaviour of the listview (the original subclassing doesn't work
> anymore).
> Is it possible to subclassing an MFC subclassed window? Any
> suggestion?
> Thanks.