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. Managed C++/CLI
  4. Listview header spanning 2 rows

Listview header spanning 2 rows

Scheduled Pinned Locked Moved Managed C++/CLI
c++
6 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.
  • K Offline
    K Offline
    kani98
    wrote on last edited by
    #1

    Is there a way for me to create a listview hearder spanning 2 rows using C/C++. If there is, then I would appreciate it if someone can provide me with some code snippit.

    G M 2 Replies Last reply
    0
    • K kani98

      Is there a way for me to create a listview hearder spanning 2 rows using C/C++. If there is, then I would appreciate it if someone can provide me with some code snippit.

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      try inserting a newline character in header name :)

      #region signature my articles #endregion

      K 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        try inserting a newline character in header name :)

        #region signature my articles #endregion

        K Offline
        K Offline
        kani98
        wrote on last edited by
        #3

        I tried that and it didn't work.

        1 Reply Last reply
        0
        • K kani98

          Is there a way for me to create a listview hearder spanning 2 rows using C/C++. If there is, then I would appreciate it if someone can provide me with some code snippit.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Maybe this will help: A Multiline Header Control Inside a CListCtrl[^] Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          K 1 Reply Last reply
          0
          • M Mark Salsbery

            Maybe this will help: A Multiline Header Control Inside a CListCtrl[^] Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            K Offline
            K Offline
            kani98
            wrote on last edited by
            #5

            I am not creating an MFC app, just a windows app. I am using the LVCOLUMN structure to create my listview.

            M 1 Reply Last reply
            0
            • K kani98

              I am not creating an MFC app, just a windows app. I am using the LVCOLUMN structure to create my listview.

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Ok.  The point was, you can use custom draw to achieve this.  It's no different with MFC than without MFC, except where you handle the messages. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              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