CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to create a process bar at the beginning of Dialog?

    Hi:
    I want to use a process bar in a dialog,when the dialog appears,the process will begin to work,I don't want to use any button in the dialog,so I push the code at the function OnInitDialog().But when the dialog appears,the process has finished.How can I control it?Please help me.





  2. #2
    Guest

    Re: How to create a process bar at the beginning of Dialog?

    You have at least two options:

    1) Add a public member function to your dialog class and put the code in it. Once your dialog is created, you can call this member function from outside of your dialog class.

    2) Override OnTimer(). Set a timer just before your return call in OnInitDialog(), then add your progress code in the timer handler.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured