|
Did you remember to resize the dropdown in the dialog editor?
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
Please Sir,
What to do exactly ?
My dialog editor is where i drawn my Box ? and after ?
|
|
|
|
|
Thanks a lot for your help
I ve found what to do; to clic a second time on the down arrow and to change the size downward.
Thanks
I learn my self
|
|
|
|
|
You're very welcome.
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I need some help on how to copy and paste files and folders programmely. Thanks for any help!
|
|
|
|
|
You need to be more specific about what you're trying to do and where you're running into problems. From your questions, I can't tell if you're having problems with OLE drag & drop, or copying files/folders, or ...
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
Do you want to move or copy files with the copying dialog of the windows explorer?
If so, then have a look at SHFileOperation.
Don't try it, just do it!
|
|
|
|
|
for example, there are dozens of files and file folders(which also include files) under dir_A\sub_dirA, now I want to copy and paste all the files and file folders under dir_A\sub_dirA into the dir_B\sub_dirB, I just don't know how to do it.
|
|
|
|
|
SHFileOperation... it's the API what windows explorer uses when copying, moving, deleting, ... files.
Don't try it, just do it!
|
|
|
|
|
hi,
i don't really understand your question.
what are you trying to define ?
why do you need to define things such as Language, Tools, OS, etc... ?
i'll try to give a small anwser here, but i fear to be "out of range"...
Language : something you use to write some code. a language has special rules that must be respected like the grammar, the syntax...
OS : an operating system is a "big" software that permits to the users of a PC not to care about the hardware. if provides layers (APIs) and functionalities like a GUI (or not - console modes).
Package : I don't understand your request... a package is a set of things... it depends on the context we use this word...
DTP, RAD : i don't know what these are
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Are you asking for explanations of tools, OS, Languages?
Micorsoft visual source safe is a tool that is used for backup purpose. winzip is a tool used for zipping purpose.
A package like software that is used for particualar purpose is called as tool.
A langauage is a software used to develop any kind of applications.
An Operating system,is a "big" software that permits to the users of a PC not to care about the hardware. if provides layers (APIs) and functionalities like a GUI (or not - console modes. (From -TOXCCT >>> GEII power)
A packages is a software developed by a language run in an OS.
Desk top publishing also known as DTP used for desinging purposes. Some packages like Adobe photoshop, coredraw, pagemaker, used for designing purposes.
DARWIN PAUL RAJ
|
|
|
|
|
hey,
it seems that you made a confusion... a did not post this to ask anything, i just answered to someone who deleted his post...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Hello -
I read through a Samm's book... I read through Petzold.. and I still don't have a handle on this.
I am writing software to analyze a bunch of data with the data organized in columns. The general plan is to use the dialog model and open a sub-dialog for each column of data.
No problems creating sub-dialogs. It's destroying them that is confusing me.
Say that I setup, create, and activate a dialog using Create() and ShowWindow().
Now comes time to destroy the window.
I see a variety of ways of doing this:
1. The sub-dialog (an MFC-derived class) executes this->Destroy(). This seems wrong as a class is deleting itself without notifying the parent class.
2. A call-back function destroys the class. This seems reasonable.. except that the child calling the call-back that is part of the parent class winds up calling the child's Destroy() and control eventually returns to a destroyed class. Which ruins the idea.
Somewhere in the MFC documentation, it says that calling a sub-dialog's Destroy() function deletes the window.. but that the class's must be deleted to destroy the underlying data structures.
By this point my eyes are crossing.. and I could use a tip.
Regards,
Mark
|
|
|
|
|
I do not know if this can is you of aid, but I in my application create one in this way ProgressBar Dialog:
...other code...
m_pDlgProgressBar = new CDlgProgressBar();
if(m_pDlgProgressBar != NULL)
{
BOOL ret = m_pDlgProgressBar->Create(IDD_DLG_PROGRESS_BAR,this);
if(!ret)
AfxMessageBox("Error Creating DlgProgressBar");
m_pDlgProgressBar->ShowWindow(SW_SHOW);
}
else{
AfxMessageBox("Error Creating Dialog Object");
}
....other code....
In order to destroy the dialog I have override PostNcDestroy Function
like this:
void CDlgProgressBar::PostNcDestroy()
{
delete(this);
SECBitmapDialog::PostNcDestroy();
}
it makes to know me...
Excuse but my English is not of the best ones
Too many plans make the health badly...
|
|
|
|
|
What is the std::string equivalent for the following CString operation?
CString time;
int minutes = 5;
int seconds = 5;
time.Format( "Time is %02d:%02d", minutes, seconds );
Output : Time is 05:05
|
|
|
|
|
you can use temp char array for conversion.like this:
char cTime[20] = {0};
sprintf(cTime, "Time is %02d:%02d", minutes, seconds);
string str(cTime);
|
|
|
|
|
Not elegant as the MFC version but that works.
Thanks
|
|
|
|
|
The "recommended by STL fanatics" method is to use an ostringstream:
ostringstream oss;
oss << "Time is " << setw(2) << setfill('0')
<< minutes << ":" << seconds;
string s = oss.str();
[edit] I didn't test it, if it doesn't work, Paul Watson wrote this code[/edit]
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
Still not as slick at MFC:
CString time;
int minutes = 5;
int seconds = 5;
time.Format( "Time is %02d:%02d", minutes, seconds );
But thanks.
|
|
|
|
|
smesser wrote:
Still not as slick at MFC:
Don't argue with me
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
I'm not I just keep hearing MFC is dead and I was looking at some of the things that I would have to be able to do to stop using it.
|
|
|
|
|
smesser wrote:
I just keep hearing MFC is dead and I was looking at some of the things that I would have to be able to do to stop using it.
MFC is not completely dead. MS still supports it in VS2005 and you can use winforms with it and vice versa.
In the end it's just a matter of taste, but it certainly wouldn't hurt you if you learn something new..
Blog[^]
|
|
|
|
|
ostringstream is slow as a dog. Read Herb's Coding Standards book for more information.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|