Category Archives: Microsoft

MIDI Note

How to play a MIDI note via low-level MIDI API. Plays a few MIDI notes via the MIDI stream interface.  Attachments File Uploaded Size 899-20170809-071224-MIDINOTE.ZIP 8/9/2017 7:12:24 AM 2290

Menu Status

How to display status messages when menu items are highlighted. Subclasses a form to watch for menu item clicks. Illustrates a bug in GetMenuItemInfo and a method to determine if the top level menu is the current selection.  Attachments File Uploaded Size 899-20170809-070952-MENUSTAT.ZIP 8/9/2017 7:09:52 AM 3314

System Menus

How to retrieve system menu items without crashing Windows. Windows 98 introduced bitmaps in its system menus, requiring a slightly different approach to menu data retrieval from code.  Attachments File Uploaded Size 899-20170808-063302-MENUSELS.ZIP 8/8/2017 6:33:02 AM 2137

Menu Selection

How to select the menu items of other programs. Attachments File Uploaded Size 899-20170808-063055-MENUSEL.ZIP 8/8/2017 6:30:55 AM 1671

Drag form without titlebar

Drag a form that has no titlebar! Add the routine listed below, and call it in the ‘MouseDown’ event of the form (or a control on the form): MoveWindow Me.Hwnd Windows API/Global Declarations: Private Declare Function ReleaseCapture Lib “user32” () As LongPrivate Declare Function SendMessage Lib “user32” Alias “SendMessageA” (ByVal hWnd As Long, ByVal wMsg As Long, ByVal… Read More »

MCI Sampler for VB6

How to use various multimedia API functions. Play a WAV/AVI/MIDI/CD, record a WAV, capture an AVI frame, change various volumes.  Attachments File Uploaded Size 899-20170806-065130-MCISAMP.ZIP 8/6/2017 6:51:30 AM 8138

MDIForm Background

How to tile or center an image on an MDI Form’s background. Attachments File Uploaded Size 899-20170806-065400-MDIBACKG.ZIP 8/6/2017 6:54:00 AM 19967