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. WM_LBUTTONUP event is not workling correctly in list control

WM_LBUTTONUP event is not workling correctly in list control

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 2 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.
  • A Offline
    A Offline
    Akt_4_U
    wrote on last edited by
    #1

    I have list control class derived from CListCtrl. I have mapped the WM_LBUTTONUP message in my list control class. But when i am clicking on list control i am not getting WM_LBUTTONUP event, ie OnLButtonUp handler is not invoked. But when i am double clicking in the list control OnLButtonUp handler is invoking. Can anybody help me to solve this? Thanks in Advance!!!

    akt

    M 1 Reply Last reply
    0
    • A Akt_4_U

      I have list control class derived from CListCtrl. I have mapped the WM_LBUTTONUP message in my list control class. But when i am clicking on list control i am not getting WM_LBUTTONUP event, ie OnLButtonUp handler is not invoked. But when i am double clicking in the list control OnLButtonUp handler is invoking. Can anybody help me to solve this? Thanks in Advance!!!

      akt

      M Offline
      M Offline
      Maxim Zarus
      wrote on last edited by
      #2

      Use ON_WM_LBUTTONDOWN. Its working if the left mouse button is down.

      A 1 Reply Last reply
      0
      • M Maxim Zarus

        Use ON_WM_LBUTTONDOWN. Its working if the left mouse button is down.

        A Offline
        A Offline
        Akt_4_U
        wrote on last edited by
        #3

        Yes I have solved the problem with LButtonDown. But I want to know why WM_LBUTTONUP is not working properly with list control? Can anybody help me???

        akt

        modified on Tuesday, June 3, 2008 7:34 AM

        M 1 Reply Last reply
        0
        • A Akt_4_U

          Yes I have solved the problem with LButtonDown. But I want to know why WM_LBUTTONUP is not working properly with list control? Can anybody help me???

          akt

          modified on Tuesday, June 3, 2008 7:34 AM

          M Offline
          M Offline
          Maxim Zarus
          wrote on last edited by
          #4

          May I know why you down voted me, if your problem is solved by my answer? :)

          A 1 Reply Last reply
          0
          • M Maxim Zarus

            May I know why you down voted me, if your problem is solved by my answer? :)

            A Offline
            A Offline
            Akt_4_U
            wrote on last edited by
            #5

            I am sorry and thank you for your answer. Actually I got this problem last week and solved it by using WM_LBUTTONDOWN. Actually I want to know why the above mentioned problem happens with WM_LBUTTONUP? Could you please tell me?

            akt

            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