Original Post
When working wit edit boxes, let's say, you have two: one edit box is a log of everything the user types and executes, the other is a field in which you enter a command to be sent to the log.
You have a dialog box holding these two edit boxes and a piece of code looking like this:
Now, this code is great to change the text in the log to what is in the command edit box. But I want it to create a new line and add it to what's in the log every time they execute something. I looked on MSDN and winprog.org and I couldn't really find anything to help me figure out how to make it this way.
Any help would be greatly appreciated, thanks in advance.
[edited by - Drizzt DoUrden on November 29, 2002 2:02:26 AM]
case IDEXEC: MessageBox(hwnd, "Executed!", "Click Ok to Continue...", MB_OK); char buff[64]; int length = 64; GetDlgItemText(hwnd, IDC_COMMAND, buff, length); SetDlgItemText(hwnd, IDC_LOG, buff); return TRUE;
