|
Hi.
U r requirement is to display this progress only when user starts the file transfer operation say by clicking on any button. You can take the following approach...
1. Add the Progress at the time of Layouting your dialog box.
2. Keep that progress bar invisible.
3. When user starts file transfer process; make that progress bar visible.
U can use CWnd::ShowWindow(TRUE/FALSE) to show and hide perticular control.
Sameer Thakur
|
|
|
|
|
Thank you, Sameer_Thakur.
I just only want to start the file transfer operation automatically after the dialog box is displayed (exactly after OnInitDialog() called) without clicking any button, without any user action.
Thank you.
|
|
|
|
|
One easy way would be to set a timer (SetTimer) in your OnInitDialog and in the handler for the timer, kill the timer and start your copy process. You could probably get away with just a 10-20 millisecond setting for the timer.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
The way I've always done this is to post a user-defined message right before OnInitDialog() returns. In your handler for that message, do your processing.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you DavidCrow.
I think your sugesstion is better than using a timer, because using a timer looks manually and not reliable. But I don't think that Windows doesn't support this situation.
Once again, thank you.
|
|
|
|
|
Very nice
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
Hello,
I have a derived class
class ViewOfTable : public CScrollView : public TableView
{
void Create1();
};
void ViewOfTable ::Create1()
{
CreatetableView(this);
}
class TableView
{
CreatetableView(CView* p);
};
When I make a call to Create1(),the program is supposed to display a table on the window whose CView* pointer I have passed but nothing is displayed and I get a blank screen.
What must be the problem.There is some problem in sending the right pointer I guess.
Prithaa
|
|
|
|
|
prithaa wrote: There is some problem in sending the right pointer I guess.
Have you bothered to verify this?
TableView::CreatetableView( CView *p )
{
ASSERT(p->IsKindOf(RUNTIME_CLASS(ViewOfTable)));
...
}
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Always call the pWnd->ShowWIndow(SW_SHOW) after creating a MFC derived window class.
pWnd here is pointer to your TABLEVIEW or whatever
Sunil
|
|
|
|
|
sunilpv1982 wrote: Always call the pWnd->ShowWIndow(SW_SHOW) after creating a MFC derived window class.
Huh? Always?
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
I'm looking for some books and code about "Organize and Access data in an USB storage".
Do you have any about it? Please share with me.
thank you very much !
My email: nguyenvodich@gmail.com
Nothing Is Impossible !
|
|
|
|
|
What's so special about an USB storage? How would you organize and access files residing on another form of media, such as a hard drive, a floppy or a CD?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Because it's my project.
Thank you.
Nothing Is Impossible !
|
|
|
|
|
Hello. I tried to help you here! Maybe I misunderstood your question? Are you possibly trying to create som kind of file system for an USB storage? It would be a lot easier to help you if you could make your question more clear.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I am trying to know "How infomation(data) are stored in an USB mass storage?"
(like Sector, track on HDD, or may be structure of USB drive).
Then I want to write a program that can show 'where is my file(for example, myfile.txt) on an USB drive?'. This Program then can access and modify this file (open, write, copy, delete...).
And what I am findind now is some books and codes about "Organize(arrange) and access data in an USB drive".
I hope somebody can help me.And I hope you are.
Thank you very much !
Nothing Is Impossible !
|
|
|
|
|
how to performe IPAddress valition with editbox.i want to create a dialog look like real netwok configuration window(appear when using local area connection setup).for that what kind of validation is to performed on editbox
give MFC sample program.
|
|
|
|
|
you already have a control that looks like an advanced editBox, which is for IP address typing...
search for the CIPAddressCtrl
|
|
|
|
|
plz give some sample program for using CIPAddress control.
|
|
|
|
|
have you bothered searching the web ?
Codeproject[^] for instance
|
|
|
|
|
It's a window class called SysIPAddress32 , and you can utilize it via MFC's CIPAddressCtrl class.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear all,
Suppose i have msi package A and B. Is it possible to call msi package B from msi package A.
Manjunath S
GESL
Bangalore
|
|
|
|
|
very well. u can make B as a silent installer also from A.
Sunil
|
|
|
|
|
any tutorials regarding this?
Manjunath S
GESL
Bangalore
|
|
|
|
|
not exactly.. it was a result of trial and error tried at my place.
Sunil
|
|
|
|
|
Hi,
In some installation cds ,there will be mulitple msi packages,but if we click the one (main one)msi package ,it install everything.Can i know how do they achieve that...
Manjunath S
GESL
Bangalore
|
|
|
|