Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how apply action on list control box item

how apply action on list control box item

Scheduled Pinned Locked Moved C / C++ / MFC
c++
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Y_Kaushik
    wrote on last edited by
    #1

    Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this

    Regard's Kaushik

    H T D 3 Replies Last reply
    0
    • Y Y_Kaushik

      Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this

      Regard's Kaushik

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Y_Kaushik wrote:

      i am using LBN_DBLCLK but its not work

      Why it didnt work can you explain more?


      WhiteSky


      Y 1 Reply Last reply
      0
      • Y Y_Kaushik

        Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this

        Regard's Kaushik

        T Offline
        T Offline
        tanvon malik
        wrote on last edited by
        #3

        Hi MSDN says This message is sent only by a list box that has the LBS_NOTIFY style.

        http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055

        1 Reply Last reply
        0
        • H Hamid Taebi

          Y_Kaushik wrote:

          i am using LBN_DBLCLK but its not work

          Why it didnt work can you explain more?


          WhiteSky


          Y Offline
          Y Offline
          Y_Kaushik
          wrote on last edited by
          #4

          Guruji In this case suppose 10 item come from database suppose its iD 10 11 12 13 20 Now my requirment is that when i bouble click 10 a specific action perform and when double click 11 action perform for id 11 but in my case its fail so can u told me in detail

          Regard's Kaushik

          H 1 Reply Last reply
          0
          • Y Y_Kaushik

            Hi in vc++, In my application i am showing my data in list control box from data bases , now my requirment is that when i double click on an individual data in list box an specific event is fired. i am using LBN_DBLCLK but its not work properly. can any one told me how we can do this

            Regard's Kaushik

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Y_Kaushik wrote:

            i am using LBN_DBLCLK but its not work properly.

            Why not? Remember, the quality of answer you receive is directly proportional to the amount of relevant information that you provide.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            1 Reply Last reply
            0
            • Y Y_Kaushik

              Guruji In this case suppose 10 item come from database suppose its iD 10 11 12 13 20 Now my requirment is that when i bouble click 10 a specific action perform and when double click 11 action perform for id 11 but in my case its fail so can u told me in detail

              Regard's Kaushik

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Do you need to this code?

              void CDialogDlg::OnLbnDblclkList1()
              {
              switch(m_List.GetCurSel())
              {
              case 0:
              MessageBox("A");
              break;
              case 1:
              MessageBox("B");
              break;
              case 2:
              MessageBox("C");
              break;

              }
              

              }

              if its not your answer can your more explain,please


              WhiteSky


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups