CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    50

    Unhappy Fibonacci and progressbar

    I have a dialog which has a button and a textbox to input a number
    When I press the button on the main dialog, a new digalog will be displayed with DoModal() along with a progress bar on it to indicate the process of calulation.

    The progress bar runs fine but the dialog itself won't dissappear after computing the Fib(inputnumber)
    I send a WM_CLOSE message in the worker thread and this closes not only the progress dialog itself but the main dialog as well

    Thank you

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Fibonacci and progressbar

    You're probably sending WM_CLOSE to your main dialog instead of the child dialog.
    Check the hWnd parameter of SendMessage/PostMessage.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

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