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. Creating header - CListCtrl

Creating header - CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 3 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.
  • G Offline
    G Offline
    grassrootkit
    wrote on last edited by
    #1

    I'm trying to insert headers to a CListCtrl.

    m_cList.InsertColumn(0, "Heading 1",LVCFMT_LEFT, 100);
    m_cList.InsertColumn(1, "Heading 2",LVCFMT_LEFT, 120);

    Doesn't work. What do I miss here?

    M 1 Reply Last reply
    0
    • G grassrootkit

      I'm trying to insert headers to a CListCtrl.

      m_cList.InsertColumn(0, "Heading 1",LVCFMT_LEFT, 100);
      m_cList.InsertColumn(1, "Heading 2",LVCFMT_LEFT, 120);

      Doesn't work. What do I miss here?

      M Offline
      M Offline
      Michael Schubert
      wrote on last edited by
      #2

      Did you specify the "Report" style for the control?

      G 2 Replies Last reply
      0
      • M Michael Schubert

        Did you specify the "Report" style for the control?

        G Offline
        G Offline
        grassrootkit
        wrote on last edited by
        #3

        I do not see any property like that in the property window. How do I set it?

        S 1 Reply Last reply
        0
        • G grassrootkit

          I do not see any property like that in the property window. How do I set it?

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          It's the 'View' property - set the 'View' property to 'Report'.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          G 2 Replies Last reply
          0
          • M Michael Schubert

            Did you specify the "Report" style for the control?

            G Offline
            G Offline
            grassrootkit
            wrote on last edited by
            #5

            Okay got it thanks. It's in "view" property. :)

            1 Reply Last reply
            0
            • S Stuart Dootson

              It's the 'View' property - set the 'View' property to 'Report'.

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              G Offline
              G Offline
              grassrootkit
              wrote on last edited by
              #6

              Just found it right on time, thus saving myself from saying yet another thanks to you.

              1 Reply Last reply
              0
              • S Stuart Dootson

                It's the 'View' property - set the 'View' property to 'Report'.

                Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                G Offline
                G Offline
                grassrootkit
                wrote on last edited by
                #7

                :doh: He is no different. Just looked at his profile.

                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