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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing expansion of treeview item

Status
Not open for further replies.

DoctorC

Programmer
Jun 29, 2000
34
US
I want to prevent users from expanding a treeview item within a dialog unless they enter a password. I know treeview controls send an ON_NOTIFY message to the parent window (in this case a dialog), but I haven't been able to figure out how to prevent that message from being handled. I tried the TVN_ITEMEXPANDING message, but apparently this is too late...it goes ahead and expands after politely handling my OnItemExpanding() function. Any ideas how I can interfere when the user clicks to expand an item? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top