Skip to content

VBE Window Messages

ThunderFrame edited this page Aug 7, 2017 · 6 revisions

The VBE receives custom WM_USER messages along with a wParam. This list is a work in progress and incomplete:

WM_USER+3140 wParam:00000000 = New Project (Office Developer)
WM_USER+3140 wParam:00000001 = Open Project (Office Developer)
WM_USER+3140 wParam:00000005 = Remove Component (fires before confirmation dialog)
WM_USER+3140 wParam:00000007 = Print Component (fires before confirmation dialog)
WM_USER+3140 wParam:00000008 = Close and return to host
WM_USER+3140 wParam:00000009 = Edit Menu Undo pressed
WM_USER+3140 wParam:0000000A = Edit Menu/Context menu Redo pressed
WM_USER+3140 wParam:0000000B = Edit Menu/Context menu Cut pressed
WM_USER+3140 wParam:0000000C = Edit Menu/Context menu Copy pressed
WM_USER+3140 wParam:0000000D = Edit Menu/Context menu Paste pressed
WM_USER+3140 wParam:0000000F = Edit Menu Clear pressed

WM_USER+3140 wParam:00000010 = Edit Menu Find pressed
WM_USER+3140 wParam:00000011 = Edit Menu Find Next pressed
WM_USER+3140 wParam:00000013 = Edit Menu Replace pressed
WM_USER+3140 wParam:00000014 = Edit Menu Indent pressed
WM_USER+3140 wParam:00000015 = Edit Menu Outdent pressed
WM_USER+3140 wParam:0000001B = Lock Controls (VB6)
WM_USER+3140 wParam:0000001C = Context Menu - View Code
WM_USER+3140 wParam:0000001D = Context Menu - View Object
WM_USER+3140 wParam:0000001E = Context Menu - View Definition

WM_USER+3140 wParam:00000020 = Context Menu - Last Position
WM_USER+3140 wParam:00000022 = Context Menu - View Object Browser
WM_USER+3140 wParam:00000023 = Context Menu - View Project Explorer
WM_USER+3140 wParam:00000024 = Context Menu - View Properties Window
WM_USER+3140 wParam:00000025 = View Toolbox
WM_USER+3140 wParam:00000026 = View Color Palette (VB6)
WM_USER+3140 wParam:00000027 = Insert menu Add Procedure
WM_USER+3140 wParam:00000028 = Add Form (VB6)
WM_USER+3140 wParam:00000029 = Add MDI Form (VB6)
WM_USER+3140 wParam:0000002A = Insert menu Add Standard Module
WM_USER+3140 wParam:0000002B = Insert menu Add Class Module
WM_USER+3140 wParam:00000028 = Add Control (VB6)
WM_USER+3140 wParam:0000002D = Add Property Page (VB6)
WM_USER+3140 wParam:0000002E = Insert menu Add UserForm
WM_USER+3140 wParam:0000002F = Insert menu File

WM_USER+3140 wParam:00000030 = Break button pushed
WM_USER+3140 wParam:00000031 = Run button pushed
WM_USER+3140 wParam:00000032 = Start with Full Compile (VB6)
WM_USER+3140 wParam:00000033 = Reset button pushed
WM_USER+3140 wParam:00000035 = Step Into pressed
WM_USER+3140 wParam:00000036 = Step Over pressed
WM_USER+3140 wParam:00000036 = Run to Cursor pressed
WM_USER+3140 wParam:00000038 = Code Context menu Toggle..Breakpoint button pushed
WM_USER+3140 wParam:0000003A = Set Next Statement
WM_USER+3140 wParam:0000003B = Show Next Statement
WM_USER+3140 wParam:0000003C = Add Watch
WM_USER+3140 wParam:0000003D = Watch Window context menu - Edit Watch
WM_USER+3140 wParam:0000003D = Watch Window context menu - Delete Watch
WM_USER+3140 wParam:0000003F = Quick Watch

WM_USER+3140 wParam:00000041 = Menu Editor (VB6)
WM_USER+3140 wParam:00000044 = Insert Component
WM_USER+3140 wParam:00000045 = Object Browser Context View References pressed
WM_USER+3140 wParam:0000004A = Tools.. Options
WM_USER+3140 wParam:0000004B = Visual Data Manager (VB6)
WM_USER+3140 wParam:0000004D = Add-in Manager	
WM_USER+3140 wParam:0000004F = Window menu Cascade

WM_USER+3140 wParam:00000050 = Window menu Tile Horizontally
WM_USER+3140 wParam:00000051 = Window menu Tile Vertically
WM_USER+3140 wParam:00000052 = Window menu Arrange Icons
WM_USER+3140 wParam:00000053 = Help.. Contents (VB6)
WM_USER+3140 wParam:00000054 = Help.. Index (VB6)
WM_USER+3140 wParam:00000055 = Help.. Technical Support (VB6)
WM_USER+3140 wParam:0000005D = Context Menu Hide

WM_USER+3140 wParam:00000064 = Set Default Color (VB6)

WM_USER+3140 wParam:00000076 = Window menu Window 1
WM_USER+3140 wParam:00000077 = Window menu Window 2
WM_USER+3140 wParam:00000078 = Window menu Window 3
WM_USER+3140 wParam:00000079 = Window menu Window 4
WM_USER+3140 wParam:0000007A = Window menu Window 5
WM_USER+3140 wParam:0000007B = Window menu Window 6
WM_USER+3140 wParam:0000007C = Window menu Window 7
WM_USER+3140 wParam:0000007D = Window menu Window 8
WM_USER+3140 wParam:0000007E = Window menu More Windows...

WM_USER+3140 wParam:00000080 = View Call Stack
WM_USER+3140 wParam:00000081 = View Immediate Window
WM_USER+3140 wParam:00000082 = Edit Menu Select All pressed
WM_USER+3140 wParam:00000083 = View Host Application

WM_USER+3140 wParam:000000A4 = Edit Menu/Code Context menu List Properties and Methods pressed
WM_USER+3140 wParam:000000A5 = Edit Menu/Code Context menu List Constants pressed
WM_USER+3140 wParam:000000A7 = Window menu Split pressed
WM_USER+3140 wParam:000000A8 = View Tab Order
WM_USER+3140 wParam:000000A9 = View Locals window
WM_USER+3140 wParam:000000AA = Step Out pressed
WM_USER+3140 wParam:000000AB = Edit Menu/Code Context Toggle..Bookmark pressed
WM_USER+3140 wParam:000000AC = Edit Menu/Code Context Next Bookmark
WM_USER+3140 wParam:000000AD = Edit Menu/Code Context Previous Bookmark
WM_USER+3140 wParam:000000AE = Edit Menu/Code Context Clear Bookmarks
WM_USER+3140 wParam:000000AF = View Watch window

WM_USER+3140 wParam:000000B0 = Import module (fires before file selection dialog)
WM_USER+3140 wParam:000000B1 = Export module (fires before file selection dialog)
WM_USER+3140 wParam:000000B2 = Design Mode
WM_USER+3140 wParam:000000B5 = Dockable Window Conetext Menu Dockable

WM_USER+3140 wParam:000000B7 = MS VBA Help
WM_USER+3140 wParam:000000B8 = Run Project
WM_USER+3140 wParam:000000BF = Edit Menu/Code Context menu Quick Info pressed

WM_USER+3140 wParam:000000C0 = Edit Menu/Code Context menu Parameter Info pressed
WM_USER+3140 wParam:000000C1 = Edit Menu/Code Context menu Complete Word pressed
WM_USER+3140 wParam:000000C4 = Object Browser Context Menu - Properties
WM_USER+3140 wParam:000000C5 = Object Browser Context Menu - Find Whole Word Only pressed
WM_USER+3140 wParam:000000C6 = Object Browser Context Menu - Help pressed
WM_USER+3140 wParam:000000C9 = Object Browser Context Menu - View Definition
WM_USER+3140 wParam:000000CA = Locals/Watches Context menu Collapse Parent pressed
WM_USER+3140 wParam:000000CB = Compile Project pressed
WM_USER+3140 wParam:000000CC = Project Explorer Context Menu - View Project Properties pressed
WM_USER+3140 wParam:000000CD = Tools Menu - View Project Properties pressed
WM_USER+3140 wParam:000000CF = View Property Pages (VB6)

WM_USER+3140 wParam:000000D1 = Object Browser Context Menu - Show Hidden Members

WM_USER+3140 wParam:000000E0 = Tools..Macros..
WM_USER+3140 wParam:000000E4 = Make Project (Office Developer)
WM_USER+3140 wParam:000000E2 = File..Save..
WM_USER+3140 wParam:000000E4 = Save Project As (Office Developer)
WM_USER+3140 wParam:000000E9 = Procedure Attributes (VB6)
WM_USER+3140 wParam:000000EB = Project Explorer Folder Toggle pressed

WM_USER+3140 wParam:000000F1 = Add Toolbox Tab (VB6)
WM_USER+3140 wParam:000000F2 = Delete Toolbox Tab (VB6)
WM_USER+3140 wParam:000000F3 = Rename Toolbox Tab (VB6)
WM_USER+3140 wParam:000000F4 = Move Toolbox Tab Up (VB6)
WM_USER+3140 wParam:000000F4 = Move Toolbox Tab Down (VB6)
WM_USER+3140 wParam:000000F7 = Toggle Properties Window Description (VB6)
WM_USER+3140 wParam:000000F9 = View Form Layout (VB6)
WM_USER+3140 wParam:000000FB = Object Browser Group Members pressed
WM_USER+3140 wParam:000000FC = Form Layout Resolution Guides (VB6)

WM_USER+3140 wParam:0000011C = Insert WebClass
WM_USER+3140 wParam:0000011D = Insert Forms 2.0 Form (VBA) / Data Report (VB6)
WM_USER+3140 wParam:0000011E = VBA MT Class
WM_USER+3140 wParam:0000011F = Data Class

WM_USER+3140 wParam:0000015B = Help.. Search (VB6)
WM_USER+3140 wParam:0000015C = MSDN on the Web
WM_USER+3140 wParam:0000015D = Digital Signature

WM_USER+3140 wParam:0000035F = DHTML Page

WM_USER+3140 wParam:00000360 = Addin Class
WM_USER+3140 wParam:00000361 = Data Environment
Clone this wiki locally