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

    Idle Time Handling



    Hi,

    I have a SDI application . My View class invokes a function of some other object say MyClassObj ( Not derived from any of the MFC ) where all the processing is done there and takes a long time to return to this view object again.

    And in this MyClassObj I have many calls to AfxMessageBox . Now what I want is , if the Operator does not respond to this AfxMessageBox , I want to beep continuously so that the operator comes there to attend it immediately . I think I can't use the OnTimer fun here because my this class is not derived from any window class.can any one suggest me how to go about for this ?

    Thanks ,

    Yash.

  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: Idle Time Handling



    You can use SetTimer() and pass it a TimerProc without using a window. Look up SetTimer in the docs.


    Dave

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