netripper

netripper

Jun 29th, 2009
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.         public class MyMessageWindow : MessageWindow
  2.         {
  3.             private FmRadioTest radiotest = null;
  4.  
  5.             public MyMessageWindow(FmRadioTest radiotest)
  6.             {
  7.                 this.radiotest = radiotest;
  8.             }
  9.  
  10.             protected override void WndProc(ref Message m)
  11.             {
  12.                 base.WndProc(ref m);
  13.  
  14.                 if (m.Msg == GFMAPI.WM_FMNOTIFICATION)
  15.                 {
  16.                     // wParam holds reference to FMDevice, but I only support one device anyway
  17.                     radiotest.ReceivedNotification();
  18.                 }
  19.             }
  20.         }
Add Comment
Please, Sign In to add comment