![]() |
|
|||||||
| PowerBASIC for Windows User to user discussions about the PB/Win (formerly PB/DLL) product line. Discussion topics include PowerBASIC Forms, PowerGEN and PowerTree for Windows. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
%mm_mcinotify
Hi,
Been looking around the forum but cant find the answer. Can I include a value in the call of MCISENDSTRING( "play mp3 notify", "", 0, hDlg ) So if I'm playing 2 mp3 files and can tell which one has finished CASE %MM_MCINOTIFY IF CBWPARAM = %MCI_NOTIFY_SUCCESSFUL THEN ????? END IF Last edited by Steve Bouffe; Jan 6th, 2012 at 08:42 AM. |
|
#2
|
|||
|
|||
|
>MCISENDSTRING( "play mp3 notify", "", 0, hDlg )
Perhaps you could create a separate callback window (not visible, or a message-only window) for each separate string and use the callback param of the MciSendString() function.... Quote:
??? MCM |
|
#3
|
|||
|
|||
|
Thaks for the suggestion.
I added the following Code:
FUNCTION MCI_Notify_Dialog_Init AS LONG LOCAL hDlg AS LONG DIALOG NEW 0, "", - 100, - 100, 1, 1 , TO MCI_NotifyDlgHan_GL DIALOG SHOW MODELESS MCI_NotifyDlgHan_GL, CALL MCI_Notify_Proc END FUNCTION CALLBACK FUNCTION MCI_Notify_Proc AS LONG SELECT CASE AS LONG CBMSG CASE %MM_MCINOTIFY IF CBWPARAM = %MCI_NOTIFY_SUCCESSFUL THEN POSTMESSAGE EposDlgHan_GL, %WM_USER + 102, 0, 0 END IF END SELECT END FUNCTION |
|
#4
|
|||
|
|||
|
A window which is only used to process callback messages and which the user doesn't see or interact with in any way ( Hence your negative screen co-ordinates and 1 pixel size).
|
|
#5
|
|||
|
|||
|
A message-only window is created by specifying certain values in the hWndParent param of your call to CreateWindowEx:
Quote:
|
|
#6
|
|||
|
|||
|
To amplify MCMs comment:
Quote:
Last edited by Stuart McLachlan; Jan 8th, 2012 at 05:54 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|