New line within table cells

Top  Previous  Next

To add a new line within a cell of a custom table you should use \r\n.

 

   for (UINT i = 0 ; i <= iSoFar ; i++) {

       CString csPasso ;

       csPasso.Format (L"%dx%d\r\n",Counts[i], int(RoundNumber (Passi[i],0))) ;

 

       if (i != iSoFar) {

           // Separator needed....

           csPasso += CString ("-") ;

       }

 

       csPassi += csPasso ;

   }

 

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)