|
And the contents of that object would be?
"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
|
|
|
|
|
Not sure what you mean,
I have something like the following,
CString Msg;
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");
AfxMessageBox(Msg,MB_OK);
The output:
This is a long first line to display here to make my
point
This is a long Second line to display here to make my
point
Can I resize the box to make the first and second line fit without breaking them?
|
|
|
|
|
Software2007 wrote: Can I resize the box to make the first and second line fit without breaking them?
Your code snippet worked fine for me (ie, no wrapping). When I increased the length of the first line to 128 characters, it wrapped. I don't know what's going on.
"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
|
|
|
|
|
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
|
|
|
|
|
Create your own message box.
"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
|
|
|
|
|
Meaning to create a dialog or somehow override the functionality of the "AfxMessageBox" ?
|
|
|
|
|
Software2007 wrote: Meaning to create a dialog...
Yes.
"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
|
|
|
|
|
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.
|
|
|
|
|
No, except indirectly by inserting LF ('\n') characters.
|
|
|
|
|
Didn't get it, will this make the box wider or taller?
|
|
|
|
|
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.
|
|
|
|
|
Hi All
I am making an application to play the video file using c++ builder. I am using directshow to play the any video file. I am Rendering the video on to the panel control. I want the first frame of this video and draw on to the another panel control. For getting the first frame I paused the video as start so that i got the first frame of the video but how i draw this frame to another panel pls help me
|
|
|
|
|
Hi All
How can i store MySql DESCRIBE table command in CString?I am useing
_ConnectionPtr m_pConn,RecordsetPtr pRecordset
pRecordset=m_pConn->Execute(_bstr_t(dec), 0, adCmdText);
_variant_t talble = pRecordset->GetRows(adGetRowsRest);
How can i store like that
CString Filed=Name;
CString Type=Varchar(20);
....
Plz help me
|
|
|
|
|
Hi Folks
Getpixel and setpixel methods are too slow ..what it is the alternative solution for that ...method ..and plz give me one samples
Thanks
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
rajugis wrote: Getpixel and setpixel methods are too slow
Too slow for what? Please explain what you are trying to achieve.
rajugis wrote: and plz give me one samples
We have no idea what you are trying to achieve, nor what you have tried. Be specific about which part of your program does not work.
|
|
|
|
|
I have one image file ..which contains the buildings i want to cut top of left corner building ..
before that i have read image in pixel - by - pixel so that its very slow ..
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
What is the criteria to cut/crop the image?
Seems to be a hassle to look for pixels details to do that ?
This signature was proudly tested on animals.
|
|
|
|
|
just check the below links, i think you are looking for these things
CImage with Performance[^]
and one more, more info about cropping and cutting CxImage[^]
Величие не Бога может быть недооценена.
|
|
|
|
|
|
Hmm guys,is it possible to display number1+ number2+number3?
Eg,if a program prompts a user to input 3 numbers,N1,N2 and N3,is it possible for the program to display N1+N2+N3?As far as i know,we can use a while loop to straight away give us the final answer for N1+N2+N3.
To make it clear,if i input 5 as N1,10 as N2 and 15 as N3,can we make the program display
"total=5+10+15=30" instead of "total=30"?
Can someone guide me on this. xD
modified on Friday, September 11, 2009 10:31 AM
|
|
|
|
|
|
UKM_Student wrote: Im currently writing a program which prompts the computer to calculate the sum of even integers between 2 numbers,namely Number_1 and Number_2.Anyone can help me with this?
Yes, lots of people but they may want to be paid for the effort. This is your program so you must at least try and make a start on it. Have you read this[^], especially point 2?
|
|
|
|
|
Ok this is what i have tried so far since 2.5 hours ago...and failed >.<
#include<iostream>
using namespace std;
int main()
{
cout<<"c. The total sum of even integers between "<<firstNum<<" and "<<secondNum<<" is : ";
int total=0;
if(firstNum%2==0)
do
{
total=total+firstNum+2;
cout<<total;
firstNum=firstNum+2;
}while(firstNum<secondNum);
PS i chose the if(firstNum%2==0) to show that if the 1st value is an even number,that loop is to be executed.For The part where the first integer is an odd number,i should be able to write that program after you guys can help me solve the even number part
modified on Friday, September 11, 2009 8:08 AM
|
|
|
|
|