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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Display on dialog box..

Display on dialog box..

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 4 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.
  • S Offline
    S Offline
    Shah Satish
    wrote on last edited by
    #1

    Hi !!! I am initialize text and retriving it on dialog box..My code is like.. CDialog::OnInitDialog(); m_ExchListbox.AddString(_T("Exchanger-Double end")); m_ExchListbox.AddString(_T("Exchanger-Single end")); m_ExchListbox.AddString(_T("Exchanger-Double end kettle")); m_ExchListbox.AddString(_T("Exchanger-Single end kettle")); m_ExchListbox.AddString(_T("Exchanger-Super")); m_ExchListbox.AddString(_T("Exchanger-Process Flow")); m_ExchListbox.SetCurSel(0); n out put of the dialog box is not same as what i declred..ie the out put is like.. Exchanger-Double end Exchanger-Double end kettle Exchanger-Process Flow Exchanger-Super Exchanger-Single end Exchanger-Single end kettle ie i want out put as same as i declred.. ie first should be Exchanger-Double end and last should be Exchanger-Process Flow..I dont want alphabetically character out put.. Thanking you Shah Satish Shah Satish

    C T H 3 Replies Last reply
    0
    • S Shah Satish

      Hi !!! I am initialize text and retriving it on dialog box..My code is like.. CDialog::OnInitDialog(); m_ExchListbox.AddString(_T("Exchanger-Double end")); m_ExchListbox.AddString(_T("Exchanger-Single end")); m_ExchListbox.AddString(_T("Exchanger-Double end kettle")); m_ExchListbox.AddString(_T("Exchanger-Single end kettle")); m_ExchListbox.AddString(_T("Exchanger-Super")); m_ExchListbox.AddString(_T("Exchanger-Process Flow")); m_ExchListbox.SetCurSel(0); n out put of the dialog box is not same as what i declred..ie the out put is like.. Exchanger-Double end Exchanger-Double end kettle Exchanger-Process Flow Exchanger-Super Exchanger-Single end Exchanger-Single end kettle ie i want out put as same as i declred.. ie first should be Exchanger-Double end and last should be Exchanger-Process Flow..I dont want alphabetically character out put.. Thanking you Shah Satish Shah Satish

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      In the dialog editor, right-click on your listbox and search in the settings. There should be an option to sort the list. Uncheck the check box 'Sort'.


      Cédric Moonen Software developer
      Charting control [v1.1]

      S 1 Reply Last reply
      0
      • S Shah Satish

        Hi !!! I am initialize text and retriving it on dialog box..My code is like.. CDialog::OnInitDialog(); m_ExchListbox.AddString(_T("Exchanger-Double end")); m_ExchListbox.AddString(_T("Exchanger-Single end")); m_ExchListbox.AddString(_T("Exchanger-Double end kettle")); m_ExchListbox.AddString(_T("Exchanger-Single end kettle")); m_ExchListbox.AddString(_T("Exchanger-Super")); m_ExchListbox.AddString(_T("Exchanger-Process Flow")); m_ExchListbox.SetCurSel(0); n out put of the dialog box is not same as what i declred..ie the out put is like.. Exchanger-Double end Exchanger-Double end kettle Exchanger-Process Flow Exchanger-Super Exchanger-Single end Exchanger-Single end kettle ie i want out put as same as i declred.. ie first should be Exchanger-Double end and last should be Exchanger-Process Flow..I dont want alphabetically character out put.. Thanking you Shah Satish Shah Satish

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        Mr satish, I already told you that when you have to post code, you have to use the <pre></pre> tags around your pieces of code ! please edit your message consequently ps: edit means reuse the same message and modifying it, without reposting a new message (have you noticed the little [Modify] link at the bottom of your post ?). as we are on a forum, it also implies that you share with us on the boards, instead of mailing me your modifications...


        Don't know where to start ?
        Refer the Forums Guidelines and ask a friend

        [VisualCalc 3.0][Flags Beginner's Guide]

        S 1 Reply Last reply
        0
        • T toxcct

          Mr satish, I already told you that when you have to post code, you have to use the <pre></pre> tags around your pieces of code ! please edit your message consequently ps: edit means reuse the same message and modifying it, without reposting a new message (have you noticed the little [Modify] link at the bottom of your post ?). as we are on a forum, it also implies that you share with us on the boards, instead of mailing me your modifications...


          Don't know where to start ?
          Refer the Forums Guidelines and ask a friend

          [VisualCalc 3.0][Flags Beginner's Guide]

          S Offline
          S Offline
          Shah Satish
          wrote on last edited by
          #4

          Sorry dear..I forgot it..:( Shah

          1 Reply Last reply
          0
          • C Cedric Moonen

            In the dialog editor, right-click on your listbox and search in the settings. There should be an option to sort the list. Uncheck the check box 'Sort'.


            Cédric Moonen Software developer
            Charting control [v1.1]

            S Offline
            S Offline
            Shah Satish
            wrote on last edited by
            #5

            Thanks dear !!! Shah

            1 Reply Last reply
            0
            • S Shah Satish

              Hi !!! I am initialize text and retriving it on dialog box..My code is like.. CDialog::OnInitDialog(); m_ExchListbox.AddString(_T("Exchanger-Double end")); m_ExchListbox.AddString(_T("Exchanger-Single end")); m_ExchListbox.AddString(_T("Exchanger-Double end kettle")); m_ExchListbox.AddString(_T("Exchanger-Single end kettle")); m_ExchListbox.AddString(_T("Exchanger-Super")); m_ExchListbox.AddString(_T("Exchanger-Process Flow")); m_ExchListbox.SetCurSel(0); n out put of the dialog box is not same as what i declred..ie the out put is like.. Exchanger-Double end Exchanger-Double end kettle Exchanger-Process Flow Exchanger-Super Exchanger-Single end Exchanger-Single end kettle ie i want out put as same as i declred.. ie first should be Exchanger-Double end and last should be Exchanger-Process Flow..I dont want alphabetically character out put.. Thanking you Shah Satish Shah Satish

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              ListBox and ComboBox has a option on the property window that is sort you can set it to true or false


              WhiteSky


              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