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. ListCtrl

ListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 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.
  • V Offline
    V Offline
    vinod sankuthodi
    wrote on last edited by
    #1

    Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S

    L N T 3 Replies Last reply
    0
    • V vinod sankuthodi

      Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S

      L Offline
      L Offline
      Laxman Auti
      wrote on last edited by
      #2

      vinivc wrote:

      I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out......

      See the following link http://www.codeproject.com/listctrl/xlistctrl.asp Knock out 't' from can't, You can if you think you can :cool:

      1 Reply Last reply
      0
      • V vinod sankuthodi

        Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        try this LVCOLUMN stColumn = { 0 }; stColumn.mask = LVCF_WIDTH; stColumn.cx = 100/ the widht u required m_List.SetColumn( nColumnnNumber, &stColumn ); nave

        T 1 Reply Last reply
        0
        • V vinod sankuthodi

          Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          vinivc wrote:

          have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View.

          Handle WM_SIZE message in View and use SetWindowPos or MoveWindow api to change size of the ListCtrl accordingly.

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          1 Reply Last reply
          0
          • N Naveen

            try this LVCOLUMN stColumn = { 0 }; stColumn.mask = LVCF_WIDTH; stColumn.cx = 100/ the widht u required m_List.SetColumn( nColumnnNumber, &stColumn ); nave

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            Naveen R wrote:

            try thisLVCOLUMN stColumn = { 0 };stColumn.mask = LVCF_WIDTH;stColumn.cx = 100/ the widht u requiredm_List.SetColumn( nColumnnNumber, &stColumn );

            How can we Increase or decrease the Size of listctrl by using it.

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            N 1 Reply Last reply
            0
            • T ThatsAlok

              Naveen R wrote:

              try thisLVCOLUMN stColumn = { 0 };stColumn.mask = LVCF_WIDTH;stColumn.cx = 100/ the widht u requiredm_List.SetColumn( nColumnnNumber, &stColumn );

              How can we Increase or decrease the Size of listctrl by using it.

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              N Offline
              N Offline
              Naveen
              wrote on last edited by
              #6

              only size the header ctrl nave

              T 1 Reply Last reply
              0
              • N Naveen

                only size the header ctrl nave

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                Naveen R wrote:

                only size the header ctrl

                Sorry to be sound rude.I believe that is not the question?

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV

                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