
Displaying text in an Edit Box
Hi,
I'm doing a cash register and my display is a very big EDIT BOX box running
the whole length of the top of the screen. What I am trying to do is on the
first line of the edit box have a subtotal price and underneath it a
couple of lines is have a grand total (tax included) price. Like this:
Your Sub total is: $12.50
Your Grand total is: $14.25
However, no matter what I try, I can't get it. I get the first line only.
I've tried
various ways of placing \n and endl but no luck. I thought maybe I'd have to
use two edit boxes but first I want to see if this is possible.
Thanks for any help
void CCalcDlg::OnTotal()
{
char buffer[80];
CString x = "Your subtotal is: ";
m_editbox = x + "$" + gcvt(totalprice, 10, buffer);
// +"\n\n"
//endl;
//CString y = "Your Grandtotal is: ";
//m_editbox = y + "$" + gcvt(Grandtotalprice, 10, buffer) ;
UpdateData(false);
Quote:
}