Annotation of mstools/samples/midimon/midimon.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  *    midimon.h
                      3:  */
                      4: 
                      5: 
                      6: /* Compile-time application metrics
                      7:  */
                      8: #define MAX_NUM_DEVICES         8       // max # of MIDI input devices
                      9: #define INPUT_BUFFER_SIZE       200     // size of input buffer in events
                     10: #define DISPLAY_BUFFER_SIZE     1000    // size of display buffer in events
                     11: 
                     12: /* Menu IDs 
                     13:  */
                     14: #define IDM_SAVE                101
                     15: #define IDM_EXIT                102
                     16: #define IDM_SETBUFSIZE          201
                     17: #define IDM_SETDISPLAY          202
                     18: #define IDM_SAVESETUP           203
                     19: #define IDM_SENDTOMAPPER        204
                     20: #define IDM_FILTCHAN0           300
                     21: #define IDM_FILTCHAN1           301
                     22: #define IDM_FILTCHAN2           302
                     23: #define IDM_FILTCHAN3           303
                     24: #define IDM_FILTCHAN4           304
                     25: #define IDM_FILTCHAN5           305
                     26: #define IDM_FILTCHAN6           306
                     27: #define IDM_FILTCHAN7           307
                     28: #define IDM_FILTCHAN8           308
                     29: #define IDM_FILTCHAN9           309
                     30: #define IDM_FILTCHAN10          310
                     31: #define IDM_FILTCHAN11          311
                     32: #define IDM_FILTCHAN12          312
                     33: #define IDM_FILTCHAN13          313
                     34: #define IDM_FILTCHAN14          314
                     35: #define IDM_FILTCHAN15          315
                     36: #define IDM_NOTEOFF             316
                     37: #define IDM_NOTEON              317
                     38: #define IDM_POLYAFTERTOUCH      318
                     39: #define IDM_CONTROLCHANGE       319
                     40: #define IDM_PROGRAMCHANGE       320
                     41: #define IDM_CHANNELAFTERTOUCH   321
                     42: #define IDM_PITCHBEND           322
                     43: #define IDM_CHANNELMODE         323
                     44: #define IDM_SYSTEMEXCLUSIVE     324
                     45: #define IDM_SYSTEMCOMMON        325
                     46: #define IDM_SYSTEMREALTIME      326
                     47: #define IDM_ACTIVESENSE         327
                     48: #define IDM_STARTSTOP           400
                     49: #define IDM_CLEAR               500
                     50: #define IDM_ABOUT               600
                     51: 
                     52: /* String resource IDs 
                     53:  */
                     54: #define IDS_APPNAME             1
                     55: 
                     56: 
                     57: /* Custom messages sent by low-level callback to application 
                     58:  */
                     59: #define MM_MIDIINPUT    WM_USER + 0
                     60: 
                     61: 
                     62: /* The label for the display window.
                     63:  */
                     64: #define LABEL " TIMESTAMP STATUS DATA1 DATA2 CHAN EVENT                 "
                     65: 
                     66: /* Structure for translating virtual key messages to scroll messages.
                     67:  */
                     68: typedef struct keyToScroll_tag
                     69: {
                     70:      WORD wVirtKey;
                     71:      int  iMessage;
                     72:      WORD wRequest;
                     73: } KEYTOSCROLL;
                     74: 
                     75: /* Structure to represent a single MIDI event.
                     76:  */
                     77: typedef struct event_tag
                     78: {
                     79:     DWORD dwDevice;
                     80:     DWORD timestamp;
                     81:     DWORD data;
                     82: } EVENT;
                     83: typedef EVENT FAR *LPEVENT;
                     84: 
                     85: 
                     86: /* Function prototypes 
                     87:  */
                     88: LRESULT FAR PASCAL WndProc(HWND, UINT, WPARAM , LPARAM);
                     89: VOID CommandMsg(HWND hWnd, WPARAM wParam, LPARAM lParam);
                     90: void DoMenuItemCheck(HWND hWnd, WORD menuItem, BOOL newState);
                     91: void SetupCustomChecks(HANDLE hInstance, HWND hWnd);
                     92: BOOL InitFirstInstance(HANDLE);
                     93: int Error(LPSTR msg);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.