Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   CDialog (http://www.programmingforums.org/showthread.php?t=4255)

Nellie Jun 3rd, 2005 5:45 AM

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

Ancient Dragon Jun 3rd, 2005 6:07 AM

create it as a modeless dialog (see MSDN) so that the program can continue working.

Nellie Jun 3rd, 2005 6:29 AM

http://msdn.microsoft.com/library/de...alog_boxes.asp does not mean much to me.

Ancient Dragon Jun 3rd, 2005 6:35 AM

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

kirkl_uk Jun 3rd, 2005 6:43 AM

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

Nellie Jun 3rd, 2005 8:15 AM

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...

Ancient Dragon Jun 3rd, 2005 8:55 PM

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.

Nellie Jun 4th, 2005 10:45 AM

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...

Ancient Dragon Jun 4th, 2005 2:02 PM

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.

uman Jun 4th, 2005 2:16 PM

Nellie: your sig should say "members who consisted of a large portion..." you're using "whom" incorrectly.

Just wanted to let you know.


All times are GMT -5. The time now is 5:35 PM.

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