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. CTreeCtrl and WM_LBUTTONUP

CTreeCtrl and WM_LBUTTONUP

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 2 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.
  • L Offline
    L Offline
    LukeV
    wrote on last edited by
    #1

    Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006

    C M 2 Replies Last reply
    0
    • L LukeV

      Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      LukeV wrote:

      void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); }

      What are you trying to do here exactly ? And also, where are you releasing the mouse button ? Above the control ? And you want to know when the mouse is released above the tree control ? Then, isn't it a notification message for the tree control itself ? I mean, instead of checking if the mouse is released above your view, check if the mouse is released above the control.

      1 Reply Last reply
      0
      • L LukeV

        Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Common controls send NM_CLICK - try handling that message instead.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        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