Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTreeView events

Status
Not open for further replies.

tabaar

Programmer
Jun 12, 2001
34
US
Such a lame question:

void CLeftView::OnItemexpanded(NMHDR* pNMHDR, LRESULT* pResult);
(CLeftView is a TreeView)

Q1:
How to determine which item was expanded or collapsed?

Q2:
How to determine, was it collapsed or expanded?

Great thanx!
 
check the MSDN about the TVN_ITEMEXPANDED windows message.

pNMHDR is actually a pointer to an NM_TREEVIEW structure, in which The itemNew member is a TV_ITEM structure that contains valid information about the parent item in the hItem, state, and lParam members. The action member in NM_TREEVIEW indicates whether the list expanded or collapsed(TVE_COLLAPSE or TVE_EXPAND ).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top