[C] TreeView: setting a value for an item besides pszText

This is a discussion on [C] TreeView: setting a value for an item besides pszText within the Windows Programming forums, part of the Platform Specific Boards category; salutations, the TreeView's item structure (TVITEM) allows us to set the text (pszText member) of the item that will be ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    49

    [C] TreeView: setting a value for an item besides pszText

    salutations,

    the TreeView's item structure (TVITEM) allows us to set the text (pszText member) of the item that will be displayed in the tree. but how can we set another value for the item, besides its displayed text? so that we can, for example, have the application to display a text description of the item when the user clicks it in the TreeView.

    thank you in advance.

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    I think that's what the lParam on the TVITEM is for
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    49
    Quote Originally Posted by FillYourBrain View Post
    I think that's what the lParam on the TVITEM is for
    thank you for your response.
    next time we will read the MSDN more carefully.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Immediate programming help! Please!
    By xMEGANx in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2008, 11:52 AM
  2. Retail Outlet Managment System - the 4th
    By Presidentofusa in forum C Programming
    Replies: 3
    Last Post: 11-10-2007, 09:44 PM
  3. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 03:41 AM
  4. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM
  5. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21