Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem in setting font to CComboBox in XP?

problem in setting font to CComboBox in XP?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yogish293
    wrote on last edited by
    #1

    Hi this is my code LOGFONT lf; memset(&lf, 0, sizeof(LOGFONT)); lf.lfHeight = 15; lf.lfWeight = FW_REGULAR; m_fontRegular.CreateFontIndirect(&lf);//m_fontRegular is object of CFont m_ctrlComboBrowsers->SetFont(&m_fontRegular);// m_ctrlComboBrowsers is object of CComboBox i am adding some string to combobox, problem is in XP machine combobox's dropdown list is not showing.... please help me.

    _ 1 Reply Last reply
    0
    • Y yogish293

      Hi this is my code LOGFONT lf; memset(&lf, 0, sizeof(LOGFONT)); lf.lfHeight = 15; lf.lfWeight = FW_REGULAR; m_fontRegular.CreateFontIndirect(&lf);//m_fontRegular is object of CFont m_ctrlComboBrowsers->SetFont(&m_fontRegular);// m_ctrlComboBrowsers is object of CComboBox i am adding some string to combobox, problem is in XP machine combobox's dropdown list is not showing.... please help me.

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Have you done the layout of it in the dialog template properly? In the dialog template, click on the drop down arrow of the combo box and resize the control by expanding it downwards.

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++)

      Polymorphism in C

      Y 1 Reply Last reply
      0
      • _ _Superman_

        Have you done the layout of it in the dialog template properly? In the dialog template, click on the drop down arrow of the combo box and resize the control by expanding it downwards.

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++)

        Polymorphism in C

        Y Offline
        Y Offline
        yogish293
        wrote on last edited by
        #3

        its created dynamically... problem was same what u told, size of the combobox was not expanded size, that was the issue.but my doubt is why this problem is coming only in xp?.... thanks..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups