You can't eat your cake and have it too. Think about it: if you are not somehow saving each value that is input (i.e., you are reusing number each time), how could you expect to display those after the while() loop ends?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
Msg.Fomrat("This is a long first line to display here to make my point\nThis is a long Second line to display here to make my point");
This is a long first line to display here to make my
This is a long Second line to display here to make my
Can I resize the box to make the first and second line fit without breaking them?
That was just a rough snippet, but how can I avoid the wrap when it does get to 128 characters? Is there a different method that I would be able to display a line of > 128 chars, doesn't have to be a MessageBox function.
Thanks, it helps that I already have this done, but I wasn't too sure if there was a way to control the size of the Message Box by setting something that I didn't know of. But, I am assuming the answer is NO.
As we used to tell our users "Working as coded". AfxMessageBox is a wrapper for the Win32 MessageBox() function, whose job is to provide a simple dialog with a message and a couple of buttons. The box will resize itself to a certain extent based on the message to display, but its purpose is merely to display the information, and not to provide parameterisation: that function is provide by Dialog boxes q.v.
You can't make the message box wider. It will chose a size based on how big the display is and other internal constraints. The LF characters will help you keep the box skinnier and taller. (It may be different on Vista and 7, but XP and before sometimes makes message boxes so wide that they are hard to read and look silly.)
As someone else pointed out; if you need to control the size very specifically, write a dialog box.
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-22 6:05