How to make a multiline cell in MFCGridctrl
-
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
-
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
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
-
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
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
-
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
oh sorry ... i mean the message board there ... try this ...
-
oh sorry ... i mean the message board there ... try this ...
thanks chris ... i hve managed to solve the problem :) thanks for replying and ur help .. :) regards Bilal.
-
thanks chris ... i hve managed to solve the problem :) thanks for replying and ur help .. :) regards Bilal.