CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: About CListBox

  1. #1
    Join Date
    Apr 1999
    Posts
    6

    About CListBox

    There is a CListBox in my dialog. I want to let the program do something after the user press enter on one of the items of the CListBox.where can I write my codes? which Message could support this operation (pressed enter)? Thank you for your attention!


  2. #2
    Join Date
    May 1999
    Location
    Toulouse, France
    Posts
    171

    Re: About CListBox

    You may know that the seletion has changed in the listbox by handling LBN_SELCHANGE notification message (with multi selection) or LB_SETCURSEL notification message (with single selection list box).

    HTH.

    K.

    Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
    We're talking ****, 'cause life is a 'biz
    You know it is
    Everybody tryin' to get rich
    God ****!
    All I wanna do is live !

    KoRn, Children of the Korn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured