Solved

MCI_Notify flag

Posted on 2000-02-23
2
668 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

Industry Leaders: 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

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 …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

688 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