ListBoxes with MFC

This is a discussion on ListBoxes with MFC within the C++ Programming forums, part of the General Programming Boards category; i got a question, im programmin on mfc, and im having a lil trouble using the listbox. i mean i ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    ListBoxes with MFC

    i got a question, im programmin on mfc, and im having a lil trouble using the listbox. i mean i know how to insert stuff in it, but the thing i wanna do is click an item in the list box and it should show up on the textfields you know, but the only way i know how to do that is to create a button to activate it and then put it on the message maps, but what my teacher wants is just the user to either single or double click on an item, and it should automatically show up, thanx

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,671
    This should be on the Windows programming board.

    You want the listbox to have LBS_NOTIFY style and ON_LBN_DBLCLK in your message map. Read this for more info.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MFC Controls and Thread Safety :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 12-06-2002, 10:36 AM
  2. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  3. Release MFC Programs & Dynamic MFC DLL :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-18-2002, 06:42 PM
  4. Beginning MFC (Prosise) Part III - Now What? :: C++
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2002, 05:58 PM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 12:33 AM

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