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. How to make a multiline cell in MFCGridctrl

How to make a multiline cell in MFCGridctrl

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorial
6 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.
  • B Offline
    B Offline
    Bilal Akram
    wrote on last edited by
    #1

    hi every bdy, does ny bdy here know how to make a cell, in MFCGridCtrl multiline. Like if the text is more than the width of the cell than it should go into the next line. I have tried using SetItemFormat nRow,0,ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN) with these parameters but i doesnt seems to work. I would be really greatful if ny bdy could help me in this regard regards, Bilal. Email bilal793@yahoo.com

    C 1 Reply Last reply
    0
    • B Bilal Akram

      hi every bdy, does ny bdy here know how to make a cell, in MFCGridCtrl multiline. Like if the text is more than the width of the cell than it should go into the next line. I have tried using SetItemFormat nRow,0,ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN) with these parameters but i doesnt seems to work. I would be really greatful if ny bdy could help me in this regard regards, Bilal. Email bilal793@yahoo.com

      C Offline
      C Offline
      cr97
      wrote on last edited by
      #2

      It works ... but you have to change the autosize-function ... the actual autosize calculates a height for only one line of text !!! Look at http://www.codeproject.com/miscctrl/gridctrl.asp ... Search for multi-line, word-wrap etc. cr97

      B 1 Reply Last reply
      0
      • C cr97

        It works ... but you have to change the autosize-function ... the actual autosize calculates a height for only one line of text !!! Look at http://www.codeproject.com/miscctrl/gridctrl.asp ... Search for multi-line, word-wrap etc. cr97

        B Offline
        B Offline
        Bilal Akram
        wrote on last edited by
        #3

        thanks for replying ... i hve even changed the height of the rows ... but its still not working ... i hve read the whole document of gridctrl.asp again nd looked for the words u mentioned, but they are not there ... is it somehow possible for u to make a small application in which there is a cell with multiline ... i would reallly appreciate it regards Bilal

        C 1 Reply Last reply
        0
        • B Bilal Akram

          thanks for replying ... i hve even changed the height of the rows ... but its still not working ... i hve read the whole document of gridctrl.asp again nd looked for the words u mentioned, but they are not there ... is it somehow possible for u to make a small application in which there is a cell with multiline ... i would reallly appreciate it regards Bilal

          C Offline
          C Offline
          cr97
          wrote on last edited by
          #4

          oh sorry ... i mean the message board there ... try this ...

          B 1 Reply Last reply
          0
          • C cr97

            oh sorry ... i mean the message board there ... try this ...

            B Offline
            B Offline
            Bilal Akram
            wrote on last edited by
            #5

            thanks chris ... i hve managed to solve the problem :) thanks for replying and ur help .. :) regards Bilal.

            C 1 Reply Last reply
            0
            • B Bilal Akram

              thanks chris ... i hve managed to solve the problem :) thanks for replying and ur help .. :) regards Bilal.

              C Offline
              C Offline
              cr97
              wrote on last edited by
              #6

              Ok ... i'm glad that i could help you ... But i'm not chris ... cr doesn't mean chris :o) Doesn't matter ... cr97

              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