Catching Windows Events in Visio 2003

M

Michael

Hi,

we have a MFC based Visio-VSL solution (We're using Visual Studio 6.0 SP5).
The solution works well with Visio 2002. Currently we are porting the
solution to Visio 2003Beta.

Our Problem with Visio 2003Beta:
We add a new window to the windows collection with Windows.Add().
We subclass this window and use this window as a parent for the 'CTreeView'
class.
We have a message map like shown below:

BEGIN_MESSAGE_MAP(CMyView, CTreeView)
//{{AFX_MSG_MAP(CMyView)
ON_NOTIFY_REFLECT(TVN_DELETEITEM, OnDeleteitem)
ON_NOTIFY_REFLECT(TVN_ITEMEXPANDING, OnItemexpanding)
ON_NOTIFY_REFLECT(TVN_SELCHANGED, OnSelchanged)
ON_NOTIFY_REFLECT(TVN_BEGINDRAG, OnBegindrag)
etc...
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

CMyView is defined as 'class CMyView : public CTreeView'

With Visio 2002 it's no Problem to catch all the 'TVN_xxx' events from the
'CTreeView', but the same code does not work with Visio 2003Beta.

(With Spy++ I saw that the parent window class of the subclassed window with
Visio2002 is 'AfxWnd42' whereas the window class with Visio2003Beta is
'AfwWnd70u', I guess the problem is related to the new window class.)

Thanks for any help
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top