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. C / C++ / MFC
  4. CMFCRibbonComboBox

CMFCRibbonComboBox

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++
7 Posts 3 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.
  • U Offline
    U Offline
    User 13219589
    wrote on last edited by
    #1

    There are many examples of CMFCRibbonComboBox that display simple text. I am actually looking for a CMFCRibbonComboBox example that display image or something like graphic, or say is ownerdraw. Unless I mistake, I think CMFCRibbonComboBox class and inherited classes have ownerdraw capabilities since in afxribboncombobox.cpp there is a Draw and OnDrawLabelAndImage and others functions with CDC arguments. Unfortunately, without step by step example, it is very difficult to implement such a class. Any links or suggestions are welcomed

    Pierre

    L 1 Reply Last reply
    0
    • U User 13219589

      There are many examples of CMFCRibbonComboBox that display simple text. I am actually looking for a CMFCRibbonComboBox example that display image or something like graphic, or say is ownerdraw. Unless I mistake, I think CMFCRibbonComboBox class and inherited classes have ownerdraw capabilities since in afxribboncombobox.cpp there is a Draw and OnDrawLabelAndImage and others functions with CDC arguments. Unfortunately, without step by step example, it is very difficult to implement such a class. Any links or suggestions are welcomed

      Pierre

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

      There are plenty of examples of using OwnerDraw on controls. Adding it to this class will be no different.

      U 1 Reply Last reply
      0
      • L Lost User

        There are plenty of examples of using OwnerDraw on controls. Adding it to this class will be no different.

        U Offline
        U Offline
        User 13219589
        wrote on last edited by
        #3

        Any url?

        V L 2 Replies Last reply
        0
        • U User 13219589

          Any url?

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          [Colored ComboBox](https://www.codeguru.com/cpp/controls/combobox/specialeffects/article.php/c7609/Colored-ComboBox.htm) [Implementing an OwnerDrawn ComboBox](https://www.codeproject.com/Articles/1767/Implementing-an-OwnerDrawn-ComboBox) and others: [Google](https://www.google.com/search?newwindow=1&sxsrf=ALeKk03fgBNBUyeh1x5vai\_9pxMj9vm8Pw%3A1610485668558&ei=pA\_-X6TPIYz4sAe7gbygAg&q=c%2B%2B+combobox+owner+draw+mfc&oq=c%2B%2B+combobox+owner+draw+mfc&gs\_lcp=CgZwc3ktYWIQAzoECAAQRzoJCAAQyQMQFhAeOgcIIRAKEKABUOf8AljvhwNgrZIDaABwAngAgAGAAYgBxQOSAQMxLjOYAQCgAQGqAQdnd3Mtd2l6yAEIwAEB&sclient=psy-ab&ved=0ahUKEwikscLRppfuAhUMPOwKHbsADyQQ4dUDCA0&uact=5)

          U 1 Reply Last reply
          0
          • V Victor Nijegorodov

            [Colored ComboBox](https://www.codeguru.com/cpp/controls/combobox/specialeffects/article.php/c7609/Colored-ComboBox.htm) [Implementing an OwnerDrawn ComboBox](https://www.codeproject.com/Articles/1767/Implementing-an-OwnerDrawn-ComboBox) and others: [Google](https://www.google.com/search?newwindow=1&sxsrf=ALeKk03fgBNBUyeh1x5vai\_9pxMj9vm8Pw%3A1610485668558&ei=pA\_-X6TPIYz4sAe7gbygAg&q=c%2B%2B+combobox+owner+draw+mfc&oq=c%2B%2B+combobox+owner+draw+mfc&gs\_lcp=CgZwc3ktYWIQAzoECAAQRzoJCAAQyQMQFhAeOgcIIRAKEKABUOf8AljvhwNgrZIDaABwAngAgAGAAYgBxQOSAQMxLjOYAQCgAQGqAQdnd3Mtd2l6yAEIwAEB&sclient=psy-ab&ved=0ahUKEwikscLRppfuAhUMPOwKHbsADyQQ4dUDCA0&uact=5)

            U Offline
            U Offline
            User 13219589
            wrote on last edited by
            #5

            These are derived from CComboBox, not from CMFCRibbonComboBox. We are in a C++ MFC thread

            V 1 Reply Last reply
            0
            • U User 13219589

              These are derived from CComboBox, not from CMFCRibbonComboBox. We are in a C++ MFC thread

              V Offline
              V Offline
              Victor Nijegorodov
              wrote on last edited by
              #6

              But the main principle of the owner drawing is still the same! You implement it in both edit (or static) box and in the listbox.

              1 Reply Last reply
              0
              • U User 13219589

                Any url?

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

                www.google.com[^]

                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