CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    CustomToolbar with controls - Font problem

    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


  2. #2
    Join Date
    Aug 1999
    Location
    Western Australia
    Posts
    38

    Re: CustomToolbar with controls - Font problem

    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


  3. #3
    Guest

    Re: CustomToolbar with controls - Font problem

    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


  4. #4
    Join Date
    Aug 1999
    Location
    Western Australia
    Posts
    38

    Re: CustomToolbar with controls - Font problem

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured