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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Tommy HuiConnect With a Mentor EngineerCommented:
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
All Courses

From novice to tech pro — start learning today.