combo box and toolbar 
Author Message
 combo box and toolbar

How to load an icon in a combo box, just as fonts selection in a
CFontDialog does?

Besides this, I tried to load a button(a CButton) to a toolbar. As long
as a CButton object is declared in my inherited toolbar class, even
though it does nothing, I got an error message. Please help me out.

Thank you!



Fri, 27 Sep 2002 03:00:00 GMT  
 combo box and toolbar
How to load an icon in a combo box, just as fonts selection in a
CFontDialog does?

Besides this, I tried to load a button(a CButton) on a toolbar. As long
as a CButton object is declared in my inherited toolbar class, even
though it does nothing, I got an error message. Please help me out.

Thank you!



Fri, 27 Sep 2002 03:00:00 GMT  
 combo box and toolbar
You need to create a CImageList and associate it with your combo box. Look
at the LISTHDR MFC sample, it gives a similar treatment to a CListCtrl.
Hope this helps!
--- VR
MS Developer Support


Sat, 28 Sep 2002 03:00:00 GMT  
 combo box and toolbar
Thanks for your help. I looked through the code. The big difference is
CListCtrl has SetImageList member functions, while CComboBox doesn't. So I
still have no clue how to implement loading images.
Thanks again.


Quote:
> You need to create a CImageList and associate it with your combo box. Look
> at the LISTHDR MFC sample, it gives a similar treatment to a CListCtrl.
> Hope this helps!
> --- VR
> MS Developer Support



Sat, 28 Sep 2002 03:00:00 GMT  
 combo box and toolbar
Hi...

        You have to use CComboBoxEx instead of CComboBox.

Cheers
Check Abdoul
-----------------

Quote:

> Thanks for your help. I looked through the code. The big difference is
> CListCtrl has SetImageList member functions, while CComboBox doesn't. So I
> still have no clue how to implement loading images.
> Thanks again.


> > You need to create a CImageList and associate it with your combo box.
Look
> > at the LISTHDR MFC sample, it gives a similar treatment to a CListCtrl.
> > Hope this helps!
> > --- VR
> > MS Developer Support



Sat, 28 Sep 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. how to place font or color combo box in toolbar

2. How to add a combo box to toolbar?

3. MFC: Hoe to put combo box in toolbar?

4. How do I receive selection info from Combo Box in toolbar

5. Add combo box on toolbar

6. Combo Boxes in ToolBars - How do I validate data?

7. Toolbar with Combo Box

8. q: toolbar drop down combo box and document data

9. Toolbar:Dynamically adding a combo box

10. MFC/SDI: "Combo Box" and Toolbar

11. How to insert a combo box into a toolbar

12. Toolbar and combo box

 

 
Powered by phpBB® Forum Software