Announcement

Collapse
No announcement yet.

Windows Context Menus

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

  • Windows Context Menus

    I am using the "HKEY_CLASSES_ROOT\Folder\Shell\" to add a context menu to Windows for an ap. My question is how could I get my ap icon to appear next to the menu item similar to how WinZip does?
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

  • #2
    Also... how would you add dividers to this menu?
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #3
      If by 'divider' you mean the horizontal line separating groups of options, that's just a menu item of type MF_SEPARATOR.

      I think you can also do a vertical breaks to result in a "multi-column" menu using
      MF_MENUBARBREAK Functions the same as the MF_MENUBREAK flag for a menu bar. For a drop-down menu, submenu, or shortcut menu, the new column is separated from the old column by a vertical line.
      MF_MENUBREAK Places the item on a new line (for menu bars) or in a new column (for a drop-down menu, submenu, or shortcut menu) without separating columns.
      MCM
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Yes I meant a separator, but not on a PB Menu. I am trying to get it on the menu in Windows when you right-click on a file or folder. I can add items to this menu by placing them into the proper registry entries. I have tried adding the MF_SEPARATOR item in the registry, but it may do the trick.

        Anyone know how to add the icons to this menu?
        Scott Slater
        Summit Computer Networks, Inc.
        www.summitcn.com

        Comment


        • #5
          A thought just occured to me.... you might find instructions/sample code to do this in the "Shell [Extension?] Programming" documentation from Microsoft.....

          MCM
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            Thanks, I'll have a look at it. I have googled this and still seem to come up empty.
            Scott Slater
            Summit Computer Networks, Inc.
            www.summitcn.com

            Comment


            • #7
              from my SDK on disk:
              Shell Programmer's Guide
              --------------------------------------------------------------------------------
              The Microsoft® Windows® user interface (UI) provides users with access to a wide variety of objects necessary for running applications and managing the operating system. The most numerous and familiar of these objects are the folders and files that reside on computer disk drives. There are also a number of virtual objects that allow the user to do tasks such as sending files to remote printers or accessing the Recycle Bin. The Shell organizes these objects into a hierarchical namespace, and provides users and applications with a consistent and efficient way to access and manage objects.

              Maybe you can search MSDN for "Shell Programmer's Guide". It's gotta be there somewhere.
              Michael Mattias
              Tal Systems (retired)
              Port Washington WI USA
              [email protected]
              http://www.talsystems.com

              Comment

              Working...
              X