Results 1 to 11 of 11

Thread: Invalid use of AddressOf operator

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Invalid use of AddressOf operator

    Thpse values look ok to me. If they were incorrect I suspect you'd see a non-zero Err.LastDllError. Is the drop target the roor of the treeview?

  2. #2

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    Re: Invalid use of AddressOf operator

    No it isn't. Those variables need to take on a value greater than zero once the dragging begins. That doesn't happen. I'm assuming that is why no image gets created.

  3. #3

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    Re: Invalid use of AddressOf operator

    Hey Guys, I think I fixed it ,

    I added this into my module:

    Code:
    Private Const TVGN_CARET = 9
    and changed this line to the following:

    Code:
    hitem = SendMessage(hWndTreeView, TVM_GETNEXTITEM, TVGN_CARET, ByVal 0&)
    seems right. Can anyone verify that I am right please.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width