MCISendString

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the Notify Flag to send a message when a song is finished
playing. I got it to work by setting up a dummy window and overriding it's
WndProc procedure then raising an event in my application. This work great
until I open a new window then the Notify message doesn't seem to trigger the
WinProc procedure in my dummy window. I guess it's because another window
has the focus...is there any other way I can intercept this message when the
window or it's parent doesn't have the focus?

Dennis in Houston
 
I got it to work. The sample code I was using had poorly constructed dispose
methods and it was hanging up. Just one question though, if I have a routine
like MciSendString that notifies a window when it's done by sending a message
that window's handle and that window does not have the focus, will it still
receive the message or will the message be qued until the window gets the
focus?
 
notifies a window when it's done by sending a message
that window's handle and that window does not have the focus, will it still
receive the message
Yes.


or will the message be qued until the window gets the focus?

The message is still queued, but when it will be retrieved from the
queue doesn't have anything to do with whether or not the window has
focus.



Mattias
 
Thanks. It seems to work that way but I wanted a "second" opinion from
someone before I based my application design on this. Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top