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. ListView::LVN_EndLabelEdit problem

ListView::LVN_EndLabelEdit problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 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.
  • J Offline
    J Offline
    jackheroes
    wrote on last edited by
    #1

    The MSDN says if you you return TRUE from LVN_EndLabelEdit notification, the control will accept the new edited text. It's not true for my experiments. I tried return TRUE, it didn't work, the label stays unchanged. ... BOOL OnEndLabelEidt( ..., LPNMLVDISPINFO pDispInfo) { return TRUE ; // doesn't work // so I have to do it manually LVITEM item ; ... item.pszText = pDisInfo->item.pszText ; ListView_SetItem(hListview, &item ) ; // then it works } As it isn't TRUE for any other notfications. such as TreeView::TVN_EndEditLabel. TreeView::TVN_EXPANDING returns TRUE expands the node anyway, which conflicts with the Documentation either. Could someone give me a clue? Thanks.

    L 1 Reply Last reply
    0
    • J jackheroes

      The MSDN says if you you return TRUE from LVN_EndLabelEdit notification, the control will accept the new edited text. It's not true for my experiments. I tried return TRUE, it didn't work, the label stays unchanged. ... BOOL OnEndLabelEidt( ..., LPNMLVDISPINFO pDispInfo) { return TRUE ; // doesn't work // so I have to do it manually LVITEM item ; ... item.pszText = pDisInfo->item.pszText ; ListView_SetItem(hListview, &item ) ; // then it works } As it isn't TRUE for any other notfications. such as TreeView::TVN_EndEditLabel. TreeView::TVN_EXPANDING returns TRUE expands the node anyway, which conflicts with the Documentation either. Could someone give me a clue? Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you think the documentation is wrong then you should report it to Microsoft.

      Veni, vidi, abiit domum

      J 1 Reply Last reply
      0
      • L Lost User

        If you think the documentation is wrong then you should report it to Microsoft.

        Veni, vidi, abiit domum

        J Offline
        J Offline
        jackheroes
        wrote on last edited by
        #3

        I am confused. I think there must be something wrong in my comprehension,

        L 1 Reply Last reply
        0
        • J jackheroes

          I am confused. I think there must be something wrong in my comprehension,

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          See http://msdn.microsoft.com/en-us/library/windows/desktop/bb774814(v=vs.85).aspx[^], for details of how this is supposed to work.

          Veni, vidi, abiit domum

          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