Solved

MCI_Notify flag

Posted on 2000-02-23
2
660 Views
Last Modified: 2013-11-20
When using a MCI device the notify flag can be set to notify the application when the device has finished executing the specified command.

How do I add a handler to process this message ?

Do I have to add a message map handler to my dialog class. If so how do I that ?

Regards

ManX
0
Comment
Question by:manx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
olgat earned 50 total points
ID: 2549748
Hi:
In your MCI_PLAY_PARMS structure, fill in dwCallback field as following:

mciPlay.dwCallback = MAKELONG(hNotifyWnd, 0);

where hNotifyWnd is a handle of your window to notify

in your "window to notify" message map place message handler as usual

ON_MESSAGE(MM_MCINOTIFY, OnMusicDone)

Don't hesitate to ask if something is not clear.

0
 

Author Comment

by:manx
ID: 2550314
Thanks for the Assist olgat

Regards

ManX
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 106
deburging in oracle form 12 112
fix34  challenge 9 166
Use of condition with 'serial' in ansible 2 88
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question