Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 3rd, 2005, 6:45 AM   #1
Nellie
Programmer
 
Nellie's Avatar
 
Join Date: Jun 2005
Location: Kent (old) England
Posts: 34
Rep Power: 0 Nellie is on a distinguished road
CDialog

does anyone know how to open a 'processing' dialog and then close it again from the main app dialog.

for example:
CProcessingDlg.OPEN() //i dont know the exact call. ( i think it is DoModal(), but not sure)
for (... 
{
     //stuff
}
CProcessingDlg.COLSE() // again, i dont know the call to make.

I am using MSVC6

thanks

Nellie
__________________
I use MSVC6.0, on XP Pro

Happy Programming :D

http://www.danasoft.com/sig/NelliesSig.jpg
Nellie is offline   Reply With Quote
Old Jun 3rd, 2005, 7:07 AM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4 Ancient Dragon is on a distinguished road
create it as a modeless dialog (see MSDN) so that the program can continue working.
Ancient Dragon is offline   Reply With Quote
Old Jun 3rd, 2005, 7:29 AM   #3
Nellie
Programmer
 
Nellie's Avatar
 
Join Date: Jun 2005
Location: Kent (old) England
Posts: 34
Rep Power: 0 Nellie is on a distinguished road
http://msdn.microsoft.com/library/de...alog_boxes.asp does not mean much to me.
__________________
I use MSVC6.0, on XP Pro

Happy Programming :D

http://www.danasoft.com/sig/NelliesSig.jpg
Nellie is offline   Reply With Quote
Old Jun 3rd, 2005, 7:35 AM   #4
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4 Ancient Dragon is on a distinguished road
There are lots of examples on the net. Google for "how to create a modeless dialog" and you get several good hits. Here's just one of them

http://www.google.com/search?hl=en&q...=Google+Search

google should become one of your best programming tutors
Ancient Dragon is offline   Reply With Quote
Old Jun 3rd, 2005, 7:43 AM   #5
kirkl_uk
Programmer
 
kirkl_uk's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 86
Rep Power: 4 kirkl_uk is on a distinguished road
Send a message via MSN to kirkl_uk
If you have difficulty finding the help you need, I have an example at home that I used as part of a Uni module that I can try and dig out for you.

kirkl_uk
kirkl_uk is offline   Reply With Quote
Old Jun 3rd, 2005, 9:15 AM   #6
Nellie
Programmer
 
Nellie's Avatar
 
Join Date: Jun 2005
Location: Kent (old) England
Posts: 34
Rep Power: 0 Nellie is on a distinguished road
Looking at the first link on google, http://www.codeproject.com/dialog/modelesschild.asp

Quote:
Originally Posted by codeproject.com
2. In your CFormView-derived class, add a (private) member variable of type CDropDialog* as a container for the modeless dialog class, let's call it m_pModeless. In the constructor of your view, make sure you initialize m_pModeless to NULL
means absolutely nothing to me...
__________________
I use MSVC6.0, on XP Pro

Happy Programming :D

http://www.danasoft.com/sig/NelliesSig.jpg
Nellie is offline   Reply With Quote
Old Jun 3rd, 2005, 9:55 PM   #7
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4 Ancient Dragon is on a distinguished road
Quote:
Originally Posted by Nellie
means absolutely nothing to me...
That example is using MFC CDialog class. If you don't know MFC then yes, that will probably mean nothing to you. But the title of this thread -- CDialog -- assumes you are wring MFC code. CFormView is a specialized view, not a CDialog. Download and run the demo program to see how it works.
Ancient Dragon is offline   Reply With Quote
Old Jun 4th, 2005, 11:45 AM   #8
Nellie
Programmer
 
Nellie's Avatar
 
Join Date: Jun 2005
Location: Kent (old) England
Posts: 34
Rep Power: 0 Nellie is on a distinguished road
I use MFC, but as have only just started i am still a bit unsure.

This is all one big steep learning curve for me...
__________________
I use MSVC6.0, on XP Pro

Happy Programming :D

http://www.danasoft.com/sig/NelliesSig.jpg
Nellie is offline   Reply With Quote
Old Jun 4th, 2005, 3:02 PM   #9
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 652
Rep Power: 4 Ancient Dragon is on a distinguished road
Quote:
Originally Posted by Nellie
I use MFC, but as have only just started i am still a bit unsure.

This is all one big steep learning curve for me...
Yes I know that feeling well. I read somewhere that its about a 1 year learning curve, and I believe it. Buy a good book and keep it handy by your computer because you'll need it. I got one that was tutorial style and it helped a lot, I referred to it often for about the first year or two. Also, do the Microsoft Scribble tutorial if you are using MS VC++ 6.0 compiler. I don't know of a M$ tutorial for .NET, but there might be one.
Ancient Dragon is offline   Reply With Quote
Old Jun 4th, 2005, 3:16 PM   #10
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 5 uman is on a distinguished road
Nellie: your sig should say "members who consisted of a large portion..." you're using "whom" incorrectly.

Just wanted to let you know.
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC