|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MCIDEMO
{
public partial class Form2 : Form
{
// Declare the nofify constant
public const int MM_MCINOTIFY = 953;
public Form parent;
protected override void WndProc(ref Message m)
{
if (m.Msg == MM_MCINOTIFY)
{
// The file is done playing, do whatever
System.Diagnostics.Debug.WriteLine(m.ToString());
listBox1.Items.Add(DateTime.Now.ToString() + " " + (string) this.Tag);
this.Tag = null;
}
base.WndProc(ref m);
}
public Form2()
{
InitializeComponent();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Coder. Hacker. Fixer.