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. ATL / WTL / STL
  4. How to Disable open drop down

How to Disable open drop down

Scheduled Pinned Locked Moved ATL / WTL / STL
tutorialquestion
5 Posts 3 Posters 13 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.
  • Y Offline
    Y Offline
    yaswanthdasari
    wrote on last edited by
    #1

    I'm using vista style of cfiledialog and don't want the open button's default drop down, I just want the open button. How to disable the open button's drop down??

    L D 2 Replies Last reply
    0
    • Y yaswanthdasari

      I'm using vista style of cfiledialog and don't want the open button's default drop down, I just want the open button. How to disable the open button's drop down??

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You would most likely need to derive your own class with modified behaviour.

      Y 1 Reply Last reply
      0
      • L Lost User

        You would most likely need to derive your own class with modified behaviour.

        Y Offline
        Y Offline
        yaswanthdasari
        wrote on last edited by
        #3

        Using templates? i'm using vista style

        1 Reply Last reply
        0
        • Y yaswanthdasari

          I'm using vista style of cfiledialog and don't want the open button's default drop down, I just want the open button. How to disable the open button's drop down??

          D Offline
          D Offline
          Daniel Pfeffer
          wrote on last edited by
          #4

          IMO, changing the behaviour of a common control (such as CFileDialog) is a bad idea. Your users have grown to expect that common controls behave in a certain way, and changing that only makes your program less intuitive. Perhaps you should think upon why you want to change this behaviour.

          If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

          Y 1 Reply Last reply
          0
          • D Daniel Pfeffer

            IMO, changing the behaviour of a common control (such as CFileDialog) is a bad idea. Your users have grown to expect that common controls behave in a certain way, and changing that only makes your program less intuitive. Perhaps you should think upon why you want to change this behaviour.

            If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

            Y Offline
            Y Offline
            yaswanthdasari
            wrote on last edited by
            #5

            The problem is maintaining consistency, I'm using an IFileDialog to open files on some computers, it all works as expected in win10, but on others win7 ultimate, the Open button has an arrow with a dropdown menu that adds a second option, "show previous versions".

            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