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

    How to create more tasks in windows?

    I have following problems:

    I created modalless dialog and I created a function, which bake up database and resources writes to window (e. g. by m_pArchivDlg->m_StaticTable.SetWindowText(_Table). In this window I wanna add a button (Cancel), but this button do not have a focus. I cannot click here, because all time is taken by baking up function.

    How to code it?



  2. #2
    Join Date
    May 1999
    Posts
    19

    Re: How to create more tasks in windows?

    You can do it in two ways.
    1. Show the cancel button dialog in another thread
    2. Sprinkle PeekMessage() loops in your back up function.

    For Cancel operation 2nd method is more recommended as it will avoid System's overhead for managing another thread. Look into VC++ help for more details.

    [email protected]
    B'lore,
    India.



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