 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Erwin Marschalk Guest
|
Posted: Mon Dec 29, 2003 12:06 pm Post subject: TMediaplayer Notify on CD change |
|
|
Hi List,
how can i get a notify from TMediaplayer or someone else, if a CD is changed
in the drive?
Thanks in advance
Erwin
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Dec 29, 2003 6:04 pm Post subject: Re: TMediaplayer Notify on CD change |
|
|
"Erwin Marschalk" <erwin.marschalk (AT) erma-systemsoft (DOT) de> wrote
| Quote: | how can i get a notify from TMediaplayer or someone else, if a
CD is changed in the drive?
|
TMediaPlayer does not support that. You will have to use a MESSAGE_MAP, or
override the form's WndProc() method, to intercept the WM_DEVICECHANGE
message instead, testing for the DBT_DEVICEARRIVAL notification.
Gambit
|
|
| Back to top |
|
 |
Erwin Marschalk Guest
|
Posted: Tue Dec 30, 2003 12:00 pm Post subject: Re: TMediaplayer Notify on CD change |
|
|
Hi Remy,
yes, that works. Thanks for your help.
Erwin
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote
| Quote: |
"Erwin Marschalk" <erwin.marschalk (AT) erma-systemsoft (DOT) de> wrote in message
news:3ff018c8$1 (AT) newsgroups (DOT) borland.com...
how can i get a notify from TMediaplayer or someone else, if a
CD is changed in the drive?
TMediaPlayer does not support that. You will have to use a MESSAGE_MAP,
or
override the form's WndProc() method, to intercept the WM_DEVICECHANGE
message instead, testing for the DBT_DEVICEARRIVAL notification.
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|