Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. put icon Context Menu on File selection

put icon Context Menu on File selection

Scheduled Pinned Locked Moved Visual Basic
windows-adminlinuxtutorialquestion
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    How to add an icon to right click menu when selecting a file or folder. Installer is going to do this kind of stuff or I can just set it up in registry? I already defined Directory/Shell/MyApp/Command to add context menu but i don't know how to add icon. Shin

    T 1 Reply Last reply
    0
    • L Lost User

      How to add an icon to right click menu when selecting a file or folder. Installer is going to do this kind of stuff or I can just set it up in registry? I already defined Directory/Shell/MyApp/Command to add context menu but i don't know how to add icon. Shin

      T Offline
      T Offline
      tramdtt
      wrote on last edited by
      #2

      Hi I have problem the same as you. But I want to know which items You put these keys(HKEY_ CLASSES_ROOT or HKEY_LOCAL_MACHINE)??? Thanks tramdtt

      V 1 Reply Last reply
      0
      • T tramdtt

        Hi I have problem the same as you. But I want to know which items You put these keys(HKEY_ CLASSES_ROOT or HKEY_LOCAL_MACHINE)??? Thanks tramdtt

        V Offline
        V Offline
        vancouver777
        wrote on last edited by
        #3

        HKEY_CLASSES_ROOT

        T 1 Reply Last reply
        0
        • V vancouver777

          HKEY_CLASSES_ROOT

          T Offline
          T Offline
          tramdtt
          wrote on last edited by
          #4

          I have tried but its only correct with several file type!!! tramdtt

          S 1 Reply Last reply
          0
          • T tramdtt

            I have tried but its only correct with several file type!!! tramdtt

            S Offline
            S Offline
            shinay
            wrote on last edited by
            #5

            tramdtt you are successfull with diplaying icons or just menu without icons. Can you put what did you put in the registry. I am still having problem with displaying icon Shin

            T 1 Reply Last reply
            0
            • S shinay

              tramdtt you are successfull with diplaying icons or just menu without icons. Can you put what did you put in the registry. I am still having problem with displaying icon Shin

              T Offline
              T Offline
              tramdtt
              wrote on last edited by
              #6

              Hi, Shinay I have still problem with icon of menu item and I have not solved it!!! Who can help me??? tramdtt

              G 1 Reply Last reply
              0
              • T tramdtt

                Hi, Shinay I have still problem with icon of menu item and I have not solved it!!! Who can help me??? tramdtt

                G Offline
                G Offline
                grigri
                wrote on last edited by
                #7

                "Static" menu extensions like you are adding through the registry (under the "shell") subkey don't allow icons. At all. If you want to add a menu item with an icon, you need to write a COM shell extension (context menu handler) which implements IContextMenu. Then you can add items to the supplied HMENU. You can use SetMenuItemBitmaps() to add an icon, but it won't be pretty [like the winzip ones]. If you want a really nice full-colour icon you have to implement IContextMenu2 in your shell extension, add an owner-draw item and draw it yourself. Hope this helps grigri

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups