How to set font in combobox ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 3 of 3

Thread: How to set font in combobox ?

  1. #1
    Join Date
    Oct 1999

    How to set font in combobox ?


    I've created a dialog box with several controls : an edit box, radio buttons and a combobox.
    For the text in the combobox, i'd like to have a different font than the one in the rest of the dialog box.

    Can anyone tell me how to do this ???


  2. #2

    Re: How to set font in combobox ?

    Common controls defive their font/size from the dialog template.
    You can't change this. You can use an ocx control instead, which
    can independently set font & size properties.

  3. #3
    Join Date
    Sep 1999

    Re: How to set font in combobox ?

    First you must have a member variable of the typ CComboBox.
    In OnCreate() you can create a CFont object, initialize it and then you can set m_myComboBox.SetFont(newFont).

    I hope it will help


Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center