Announcement

Collapse
No announcement yet.

How to use %lvn_endlabeledit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use %lvn_endlabeledit

    Any ideas why this text would be coming up blank??
    The listview works, but when editing the text, I can't get the new text!

    Code:
           case %wm_notify
             dim nmhp as nmhdr ptr
    
             nmhp=lparam&
    
             select case @nmhp.idfrom
               case 100  ''listview
    
                 select case @nmhp.code
                   case %lvn_columnclick
                     ''column header click
                   case %lvn_getdispinfo
    
                   case %lvn_endlabeledit
                     dim pnml as nmlvdispinfo ptr
                     dim nml as nmlvdispinfo
                     dim ztext as asciiz*16
                     dim szp as asciiz ptr
                     pnml=lparam&
                     [email protected]
                     szp=varptr(nml.item.psztext)
                     [email protected]
                     b$=ztext
                     msgbox b$
                   case %nm_dblclk
                     ''double click
                     wparam&=maklng(%idok,%bn_clicked)
                     postmessage hwnd&,%wm_command,wparam&,0
                   case %lvn_itemchanged
                     ''selection changed
                 end select
    
             end select
    
           case %wm_command
    Last edited by Jim Seekamp; 23 Mar 2009, 01:41 PM.
    Jim Seekamp

  • #2
    Never mind... I got it working...
    (I forgot to return the value back! LOL)

    Code:
                     dim pnml as nmlvdispinfo ptr
                     dim nml as nmlvdispinfo
                     dim szp as asciiz ptr
                     pnml=lparam&
                     [email protected]
                     szp=varptr(nml.item.psztext)
                     function=szp
                     exit function
    Jim Seekamp

    Comment

    Working...
    X