NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
MIDISequencerGUINotifierWin32 Class Reference

A MIDISequencerGUINotifier which sends messages to a Win32 window using the Windows PostMessage() function. More...

#include <notifier.h>

Inheritance diagram for MIDISequencerGUINotifierWin32:
MIDISequencerGUINotifier

Public Member Functions

 MIDISequencerGUINotifierWin32 (HWND w, DWORD msg, WPARAM param_value=0)
 In this form of the constructor you must give the Windows parameters to the notifier. More...
 
 MIDISequencerGUINotifierWin32 (HWND w)
 This form auto sets the Windows message id and wparam_value, so you don't have to worry about them. More...
 
virtual ~MIDISequencerGUINotifierWin32 ()
 The destructor. More...
 
DWORD GetMsgId () const
 Returns the Window message id. More...
 
virtual void Notify (const MIDISequencerGUIEvent &ev)
 Sends the MIDISequencerGUIEvent ev to the window. More...
 
- Public Member Functions inherited from MIDISequencerGUINotifier
 MIDISequencerGUINotifier (const MIDISequencer *seq=0)
 The constructor. More...
 
virtual void SetSequencer (const MIDISequencer *seq)
 This sets the sequencer which generates messages sent to the GUI. More...
 
virtual bool GetEnable () const
 Returns the enable/disable status. More...
 
virtual void SetEnable (bool f)
 Sets message sending on/off. More...
 

Detailed Description

A MIDISequencerGUINotifier which sends messages to a Win32 window using the Windows PostMessage() function.

Examples
test_win32_player.cpp.

Constructor & Destructor Documentation

◆ MIDISequencerGUINotifierWin32() [1/2]

MIDISequencerGUINotifierWin32::MIDISequencerGUINotifierWin32 ( HWND  w,
DWORD  msg,
WPARAM  param_value = 0 
)

In this form of the constructor you must give the Windows parameters to the notifier.

Parameters
wthe id of the window to whom sending messages
msga Windows message id used by the notifier to communicate with the window
param_valuean optional parameter sent by the message.

◆ MIDISequencerGUINotifierWin32() [2/2]

MIDISequencerGUINotifierWin32::MIDISequencerGUINotifierWin32 ( HWND  w)

This form auto sets the Windows message id and wparam_value, so you don't have to worry about them.

◆ ~MIDISequencerGUINotifierWin32()

virtual MIDISequencerGUINotifierWin32::~MIDISequencerGUINotifierWin32 ( )
inlinevirtual

The destructor.

Member Function Documentation

◆ GetMsgId()

DWORD MIDISequencerGUINotifierWin32::GetMsgId ( ) const
inline

Returns the Window message id.

◆ Notify()

virtual void MIDISequencerGUINotifierWin32::Notify ( const MIDISequencerGUIEvent ev)
virtual

Sends the MIDISequencerGUIEvent ev to the window.

Implements MIDISequencerGUINotifier.


The documentation for this class was generated from the following file: