MCI Notify Message

I want to respond to an MCI message in my application ( its a MFC SDI app)... The mci command sends a MM_MCINOTIFY message which i want to catch, but it appears I need to create my own handler - I have tried to set up a handler in the message pump but it never seems to get called...

I basically set up my handler like a WM_USER message - in the  MESSAGE_MAP  I put
ON_MESSAGE(MM_MCINOTIFY, OnMCIMessage)

and in the header i placed
afx_msg LRESULT OnMCIMessage( WPARAM Flag, LPARAM ID)

gpaigeAsked:
Who is Participating?
 
Tommy HuiEngineerCommented:
Did you check to make sure you have MCI_NOTIFY in your MCI command?
0
 
gpaigeAuthor Commented:
Edited text of question
0
 
gpaigeAuthor Commented:
I have it working.... Thanx for your help...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.