[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MCI_Notify flag

Posted on 2000-02-23
2
Medium Priority
?
706 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
2 Comments
 
LVL 1

Accepted Solution

by:
olgat earned 150 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

873 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