CMFCRibbonComboBox
-
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
-
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
-
There are plenty of examples of using
OwnerDraw
on controls. Adding it to this class will be no different.Any url?
-
Any url?
[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)
-
[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)
These are derived from CComboBox, not from CMFCRibbonComboBox. We are in a C++ MFC thread
-
These are derived from CComboBox, not from CMFCRibbonComboBox. We are in a C++ MFC thread
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.
-
Any url?