News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TreeView

Started by ragdog, October 15, 2010, 09:06:19 PM

Previous topic - Next topic

ragdog

Thanks Micha :U

Yes this contain this macros for TV-Messages

Reagards,

ragdog

Hi

Again treeview ::)

I Try delete a item from the treeview how i can auto select the next Child in the Treeview for delte the child
If not any child in the parent then delete the parent item


            invoke  SendMessage ,hTreeView, TVM_GETNEXTITEM,TVGN_CARET,Selected
            mov Selected,eax
            .if(Selected!=NULL)
                   invoke  SendMessage ,hTreeView, TVM_ENSUREVISIBLE,0,eax
                   invoke  SendMessage ,hTreeView, TVM_SELECTITEM,TVGN_CARET, Selected
                      m2m   tvi.hItem,Selected
                      mov   tvi.imask,TVIF_CHILDREN ;   
                   invoke  SendMessage ,hTreeView, TVM_GETITEM,TVGN_CHILD , addr tvi
                   .if(tvi.cChildren==0)
                   invoke  SendMessage ,hTreeView, TVM_DELETEITEM,TVGN_CARET, tvi.hItem
               
                   .endif
                   invoke SetFocus,hTreeView
                   invoke SendMessage,hTreeView,TVM_SELECTITEM,TVGN_NEXTVISIBLE  ,0
                    mov Selected,eax
            .endif


Forward works fine but no backward

Regards,