Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CTreeCtrl Collapse All
Subject Author Date
Jason Blackston Mar 3, 2006 - 2:52 PM

I downloaded a sample version and have a question about trying to trap a notification from a CTreeCtrl.

In the child view class the variable is declared as CExtWFF<CTreeCtrl> m_view and it’s created as:    

m_view.Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL|WS_TABSTOP
             |TVS_HASBUTTONS|TVS_HASLINES|TVS_LINESATROOT
             |TVS_INFOTIP|TVS_DISABLEDRAGDROP
             |TVS_SINGLEEXPAND|TVS_SHOWSELALWAYS,
             CRect(0,0,0,0), this, UINT(IDC_VIEW)) )

I then setup a notify message map: ON_NOTIFY(NM_DBLCLK, IDC_VIEW, OnTreeDblClick)

However i never was able to trap the message of a double click on the tree. What am I missing here?

Technical Support Mar 4, 2006 - 5:46 AM

The CExtWFF template class eliminates flickering of the tree control. It does not affect the mouse input. We need to take a look at your project because your tree creation code and message map entry do not have any errors.