Click here to Skip to main content
15,879,239 members
Articles / Desktop Programming / Win32

ExpTreeLib Version 3 - Explorer-like Navigation and Operation for your Forms

Rate me:
Please Sign up or sign in to vote.
4.97/5 (54 votes)
9 Jan 2014CPOL22 min read 274.3K   14K   83  
A Class Library for building Forms with a folder navigation TreeView and form specific ListViews that can be tailored for your application and behave like Windows Explorer. Full documentation.
Imports ExpTreeLib.ShellDll.ShellAPI
Imports System.Runtime.InteropServices
Namespace ShellDll
    <ComImport(), _
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown), _
    GuidAttribute("bcfce0a0-ec17-11d0-8d10-00a0c90f2719")> _
Public Interface IContextMenu3
        ' IContextMenu methods

        <PreserveSig()> _
        Function QueryContextMenu(ByVal hmenu As IntPtr, _
        ByVal iMenu As Integer, _
        ByVal idCmdFirst As Integer, _
        ByVal idCmdLast As Integer, _
        ByVal uFlags As Integer) As Integer

        <PreserveSig()> _
        Function InvokeCommand(ByRef pici As CMInvokeCommandInfoEx) As Integer

        <PreserveSig()> _
       Function GetCommandString(ByVal idcmd As Integer, _
        ByVal uflags As Integer, _
        ByVal reserved As Integer, _
        <MarshalAs(UnmanagedType.LPArray)> ByVal commandstring As Byte(), _
        ByVal cch As Integer) As Integer

        'IContextMenu2 method
        <PreserveSig()> _
        Function HandleMenuMsg( _
        ByVal uMsg As Integer, _
        ByVal wParam As IntPtr, _
        ByVal lParam As IntPtr _
        ) As Integer

        'IContextMenu3 method
        <PreserveSig()> _
         Function HandleMenuMsg2( _
        ByVal uMsg As Integer, _
        ByVal wParam As IntPtr, _
        ByVal lParam As IntPtr, _
        ByVal plResult As IntPtr _
        ) As Integer
    End Interface

End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
After 30+ years working in the IT field, mostly managing SysAdmins, I have retired. One of my hobbies returns me to programming, basically just to keep my hand in.

Comments and Discussions