Click to See Complete Forum and Search --> : CustomToolbar with controls - Font problem


September 2nd, 1999, 05:53 PM
Hi,
I created a custom toolbar with two edit and two combo control. I couldn't able to change the font.

In my toolbar( derived from CToolBar) class I've CFont member and I used SetFont for the edit/combo members of the class. I ain't see the font changing....anybody have same problem. Help me

Ryan Binns
September 2nd, 1999, 09:04 PM
Try handling the WM_CTLCOLOR message in your toolbar and setting the font there. I have had success with this in another docking bar that I have written

Ryan

September 3rd, 1999, 10:25 AM
Hi Ryan,
I handled the ONCTRLCOLOR(), it seems to be changing the font only if set the break point in debug mode...Not if I run the APP. It seems to be some bug with 3DControls library...Anu thoughts

Ryan Binns
September 5th, 1999, 10:02 PM
This is an interesting problem. I don't currently have access to any MFC or Windows documentation, so I can't help you at the moment. If I come up with something that might help, I'll post a message.

Sorry,
Ryan