Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Handler

Status
Not open for further replies.

TheCrappyProgrammer

Programmer
Sep 17, 2001
41
US
How would I set up a Message Handler for when the Animation Control stops playing?
I know that I have to use ACN_STOP, but I don't know how.
 
You'll have to add this by hand, since class wizard doesn't seem to know about the ACN_ messages. In your header you need to add the function

afx_msg void OnACNStop(); // (for example)

In your cpp add the following entry to the message map:

ON_CONTROL(ACN_STOP,IDC_ANIMATECTRL, OnACNStop)

And your function looks like this:

void CMyDialog::OnACNStop()
{
// Do whatever...
}

:) Hope that this helped! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top