View Single Post
  #2  
Old 11-19-2020, 10:06
HarrySpoofer HarrySpoofer is offline
Friend
 
Join Date: Jul 2018
Posts: 17
Rept. Given: 0
Rept. Rcvd 3 Times in 2 Posts
Thanks Given: 5
Thanks Rcvd at 12 Times in 6 Posts
HarrySpoofer Reputation: 3
...and below is a function I have created in Delphi for converting the Windows messages and their wParam to friendly strings:

Code:
unit MsgToString;
interface

uses Windows, Messages, SysUtils;

function MsgToStr(Msg : cardinal; wParam : Cardinal) : ShortString;

implementation

function MsgToStr(Msg : cardinal; wParam : Cardinal) : ShortString;
begin
		Case Msg of
		WM_NULL										: result:='WM_NULL';										// $0000, 0
		WM_CREATE									: result:='WM_CREATE';									// $0001, 1
		WM_DESTROY								: result:='WM_DESTROY';									// $0002, 2
		WM_MOVE										: result:='WM_MOVE';										// $0003, 3
		WM_SIZE										: result:='WM_SIZE';										// $0005, 5
		WM_ACTIVATE								: result:='WM_ACTIVATE';								// $0006, 6
		WM_SETFOCUS								: result:='WM_SETFOCUS';								// $0007, 7
		WM_KILLFOCUS							: result:='WM_KILLFOCUS';								// $0008, 8
 		$0009											: result:='WM_SETVISIBLE';							// $0009, 9  		// Undocumented
		WM_ENABLE									: result:='WM_ENABLE';									// $000A, 10
		WM_SETREDRAW							: result:='WM_SETREDRAW';								// $000B, 11
		WM_SETTEXT								: result:='WM_SETTEXT';									// $000C, 12
		WM_GETTEXT								: result:='WM_GETTEXT';									// $000D, 13
		WM_GETTEXTLENGTH					: result:='WM_GETTEXTLENGTH';						// $000E, 14
		WM_PAINT									: result:='WM_PAINT';										// $000F, 15
		WM_CLOSE									: result:='WM_CLOSE';										// $0010, 16
		WM_QUERYENDSESSION				: result:='WM_QUERYENDSESSION';					// $0011, 17
		WM_QUIT										: result:='WM_QUIT';										// $0012, 18
		WM_QUERYOPEN							: result:='WM_QUERYOPEN';								// $0013, 19
		WM_ERASEBKGND							: result:='WM_ERASEBKGND';							// $0014, 20
		WM_SYSCOLORCHANGE					: result:='WM_SYSCOLORCHANGE';					// $0015, 21
		WM_ENDSESSION							: result:='WM_ENDSESSION';							// $0016, 22
		WM_SYSTEMERROR						: result:='WM_SYSTEMERROR';							// $0017, 23
		WM_SHOWWINDOW							: result:='WM_SHOWWINDOW';							// $0018, 24
		WM_CTLCOLOR								: result:='WM_CTLCOLOR';								// $0019, 25
		WM_SETTINGCHANGE					: result:='WM_SETTINGCHANGE or WM_WININICHANGE'; // $001A, 26
		WM_DEVMODECHANGE					: result:='WM_DEVMODECHANGE';						// $001B, 27
		WM_ACTIVATEAPP						: result:='WM_ACTIVATEAPP';							// $001C, 28
		WM_FONTCHANGE							: result:='WM_FONTCHANGE';							// $001D, 29
		WM_TIMECHANGE							: result:='WM_TIMECHANGE';							// $001E, 30
		WM_CANCELMODE							: result:='WM_CANCELMODE';							// $001F, 31
		WM_SETCURSOR							: result:='WM_SETCURSOR';								// $0020, 32
		WM_MOUSEACTIVATE					: result:='WM_MOUSEACTIVATE';						// $0021, 33
		WM_CHILDACTIVATE					: result:='WM_CHILDACTIVATE';						// $0022, 34
		WM_QUEUESYNC							: result:='WM_QUEUESYNC';								// $0023, 35
		WM_GETMINMAXINFO					: result:='WM_GETMINMAXINFO';						// $0024, 36
		WM_PAINTICON							: result:='WM_PAINTICON';								// $0026, 38
		WM_ICONERASEBKGND					: result:='WM_ICONERASEBKGND';					// $0027, 39
		WM_NEXTDLGCTL							: result:='WM_NEXTDLGCTL';							// $0028, 40
 		$0029											: result:='WM_ALTTABACTIVE';            // $0029, 41    // Undocumented
		WM_SPOOLERSTATUS					: result:='WM_SPOOLERSTATUS';						// $002A, 42
		WM_DRAWITEM								: result:='WM_DRAWITEM';								// $002B, 43
		WM_MEASUREITEM						: result:='WM_MEASUREITEM';							// $002C, 44
		WM_DELETEITEM							: result:='WM_DELETEITEM';							// $002D, 45
		WM_VKEYTOITEM							: result:='WM_VKEYTOITEM';							// $002E, 46
		WM_CHARTOITEM							: result:='WM_CHARTOITEM';							// $002F, 47
		WM_SETFONT								: result:='WM_SETFONT';									// $0030, 48
		WM_GETFONT								: result:='WM_GETFONT';									// $0031, 49
		WM_SETHOTKEY							: result:='WM_SETHOTKEY';								// $0032, 50
		WM_GETHOTKEY							: result:='WM_GETHOTKEY';								// $0033, 51
 		$0035											: result:='WM_ISACTIVEICON';            // $0035, 53    // Undocumented
		$0036											: result:='WM_QUERYPARKICON';           // $0036, 54    // Undocumented
		WM_QUERYDRAGICON					: result:='WM_QUERYDRAGICON';						// $0037, 55
		WM_COMPAREITEM						: result:='WM_COMPAREITEM';							// $0039, 57
		WM_GETOBJECT							: result:='WM_GETOBJECT';								// $003D, 61
		WM_COMPACTING							: result:='WM_COMPACTING';							// $0041, 65
		WM_COMMNOTIFY							: result:='WM_COMMNOTIFY';							// $0044, 68   	//Obsolete in Win32
		WM_WINDOWPOSCHANGING			: result:='WM_WINDOWPOSCHANGING';				// $0046, 70
		WM_WINDOWPOSCHANGED				: result:='WM_WINDOWPOSCHANGED';				// $0047, 71
		WM_POWER									: result:='WM_POWER';										// $0048, 72
		WM_COPYDATA								: result:='WM_COPYDATA';								// $004A, 74
		WM_CANCELJOURNAL					: result:='WM_CANCELJOURNAL';						// $004B, 75
		WM_NOTIFY									: result:='WM_NOTIFY';									// $004E, 78
		WM_INPUTLANGCHANGEREQUEST	: result:='WM_INPUTLANGCHANGEREQUEST';	// $0050, 80
		WM_INPUTLANGCHANGE				: result:='WM_INPUTLANGCHANGE';					// $0051, 81
		WM_TCARD									: result:='WM_TCARD';										// $0052, 82
		WM_HELP										: result:='WM_HELP';										// $0053, 83
		WM_USERCHANGED						: result:='WM_USERCHANGED';							// $0054, 84
		WM_NOTIFYFORMAT						: result:='WM_NOTIFYFORMAT';						// $0055, 85

		WM_CONTEXTMENU						: result:='WM_CONTEXTMENU';							// $007B, 123
		WM_STYLECHANGING					: result:='WM_STYLECHANGING';						// $007C, 124
		WM_STYLECHANGED						: result:='WM_STYLECHANGED';						// $007D, 125
		WM_DISPLAYCHANGE					: result:='WM_DISPLAYCHANGE';						// $007E, 126
		WM_GETICON								: result:='WM_GETICON';									// $007F, 127
		WM_SETICON								: result:='WM_SETICON';									// $0080, 128
		WM_NCCREATE								: result:='WM_NCCREATE';								// $0081, 129
		WM_NCDESTROY							: result:='WM_NCDESTROY';								// $0082, 130
		WM_NCCALCSIZE							: result:='WM_NCCALCSIZE';							// $0083, 131
		WM_NCHITTEST							: result:='WM_NCHITTEST';								// $0084, 132
		WM_NCPAINT								: result:='WM_NCPAINT';									// $0085, 133
		WM_NCACTIVATE							: result:='WM_NCACTIVATE';							// $0086, 134
		WM_GETDLGCODE							: result:='WM_GETDLGCODE';							// $0087, 135
		$0088											: result:='WM_SYNCPAINT';               // $0088, 136   // Undocumented

		WM_NCMOUSEMOVE						: result:='WM_NCMOUSEMOVE';							// $00A0, 160
		WM_NCLBUTTONDOWN					: result:='WM_NCLBUTTONDOWN';						// $00A1, 161
		WM_NCLBUTTONUP						: result:='WM_NCLBUTTONUP';							// $00A2, 162
		WM_NCLBUTTONDBLCLK				: result:='WM_NCLBUTTONDBLCLK';						// $00A3, 163
		WM_NCRBUTTONDOWN					: result:='WM_NCRBUTTONDOWN';					// $00A4, 164
		WM_NCRBUTTONUP						: result:='WM_NCRBUTTONUP';						// $00A5, 165
		WM_NCRBUTTONDBLCLK				: result:='WM_NCRBUTTONDBLCLK';						// $00A6, 166
		WM_NCMBUTTONDOWN					: result:='WM_NCMBUTTONDOWN';					// $00A7, 167
		WM_NCMBUTTONUP						: result:='WM_NCMBUTTONUP';						// $00A8, 168
		WM_NCMBUTTONDBLCLK				: result:='WM_NCMBUTTONDBLCLK';						// $00A9, 169
		WM_NCXBUTTONDOWN					: result:='WM_NCXBUTTONDOWN';					// $00AB, 171
		WM_NCXBUTTONUP						: result:='WM_NCXBUTTONUP';						// $00AC, 172
		WM_NCXBUTTONDBLCLK					: result:='WM_NCXBUTTONDBLCLK';					// $00AD, 173		
		$00AE								: result:='WM_NCUAHDRAWCAPTION'; 				// $00AE, 174
		$00AF								: result:='WM_NCUAHDRAWFRAME';  				// $00AF, 175

		EM_GETSEL              		: result:='EM_GETSEL';									// $00B0, 176
  	EM_SETSEL              		: result:='EM_SETSEL';									// $00B1, 177
  	EM_GETRECT             		: result:='EM_GETRECT';									// $00B2, 178
  	EM_SETRECT             		: result:='EM_SETRECT';									// $00B3, 179
  	EM_SETRECTNP           		: result:='EM_SETRECTNP';								// $00B4, 180
  	EM_SCROLL              		: result:='EM_SCROLL';									// $00B5, 181
  	EM_LINESCROLL          		: result:='EM_LINESCROLL';							// $00B6, 182
  	EM_SCROLLCARET         		: result:='EM_SCROLLCARET';							// $00B7, 183
  	EM_GETMODIFY           		: result:='EM_GETMODIFY';								// $00B8, 184
  	EM_SETMODIFY           		: result:='EM_SETMODIFY';								// $00B9, 185
  	EM_GETLINECOUNT        		: result:='EM_GETLINECOUNT';						// $00BA, 186
  	EM_LINEINDEX           		: result:='EM_LINEINDEX';								// $00BB, 187
  	EM_SETHANDLE           		: result:='EM_SETHANDLE';								// $00BC, 188
  	EM_GETHANDLE           		: result:='EM_GETHANDLE';								// $00BD, 189
  	EM_GETTHUMB            		: result:='EM_GETTHUMB';								// $00BE, 190
  	EM_LINELENGTH          		: result:='EM_LINELENGTH';							// $00C1, 193
  	EM_REPLACESEL          		: result:='EM_REPLACESEL';							// $00C2, 194
  	EM_GETLINE             		: result:='EM_GETLINE';									// $00C4, 196
  	EM_LIMITTEXT           		: result:='EM_LIMITTEXT or EM_SETLIMITTEXT';		// $00C5, 197
  	EM_CANUNDO             		: result:='EM_CANUNDO';									// $00C6, 198
  	EM_UNDO                		: result:='EM_UNDO';										// $00C7, 199
  	EM_FMTLINES            		: result:='EM_FMTLINES';								// $00C8, 200
  	EM_LINEFROMCHAR        		: result:='EM_LINEFROMCHAR';						// $00C9, 201
  	EM_SETTABSTOPS         		: result:='EM_SETTABSTOPS';							// $00CB, 203
  	EM_SETPASSWORDCHAR     		: result:='EM_SETPASSWORDCHAR';					// $00CC, 204
  	EM_EMPTYUNDOBUFFER     		: result:='EM_EMPTYUNDOBUFFER';					// $00CD, 205
  	EM_GETFIRSTVISIBLELINE 		: result:='EM_GETFIRSTVISIBLELINE';			// $00CE, 206
  	EM_SETREADONLY         		: result:='EM_SETREADONLY';							// $00CF, 207
  	EM_SETWORDBREAKPROC    		: result:='EM_SETWORDBREAKPROC';				// $00D0, 208
  	EM_GETWORDBREAKPROC    		: result:='EM_GETWORDBREAKPROC';				// $00D1, 209
  	EM_GETPASSWORDCHAR     		: result:='EM_GETPASSWORDCHAR';					// $00D2, 210
  	EM_SETMARGINS          		: result:='EM_SETMARGINS';							// $00D3, 211
  	EM_GETMARGINS          		: result:='EM_GETMARGINS';							// $00D4, 212
  	EM_GETLIMITTEXT        		: result:='EM_GETLIMITTEXT';						// $00D5, 213
  	EM_POSFROMCHAR         		: result:='EM_POSFROMCHAR';							// $00D6, 214
  	EM_CHARFROMPOS         		: result:='EM_CHARFROMPOS';							// $00D7, 215
  	EM_SETIMESTATUS        		: result:='EM_SETIMESTATUS';						// $00D8, 216
  	EM_GETIMESTATUS        		: result:='EM_GETIMESTATUS';						// $00D9, 217

  	SBM_SETPOS 								: result:='SBM_SETPOS';									// $00E0, 0
  	SBM_GETPOS 								: result:='SBM_GETPOS';									// $00E1, 0
  	SBM_SETRANGE 							: result:='SBM_SETRANGE';								// $00E2, 0
  	SBM_SETRANGEREDRAW 				: result:='SBM_SETRANGEREDRAW';					// $00E6, 0
  	SBM_GETRANGE 							: result:='SBM_GETRANGE';								// $00E3, 0
  	SBM_ENABLE_ARROWS 				: result:='SBM_ENABLE_ARROWS';					// $00E4, 0
  	SBM_SETSCROLLINFO 				: result:='SBM_SETSCROLLINFO';					// $00E9, 0
  	SBM_GETSCROLLINFO 				: result:='SBM_GETSCROLLINFO';					// $00EA, 234

		BM_GETCHECK 							: result:='BM_GETCHECK';								// $00F0, 240
  	BM_SETCHECK 							: result:='BM_SETCHECK';								// $00F1, 241
  	BM_GETSTATE 							: result:='BM_GETSTATE';								// $00F2, 242
  	BM_SETSTATE 							: result:='BM_SETSTATE';								// $00F3, 243
  	BM_SETSTYLE 							: result:='BM_SETSTYLE';								// $00F4, 244
  	BM_CLICK    							: result:='BM_CLICK';										// $00F5, 245
  	BM_GETIMAGE 							: result:='BM_GETIMAGE';								// $00F6, 246
  	BM_SETIMAGE 							: result:='BM_SETIMAGE';								// $00F7, 247

		WM_INPUT									: result:='WM_INPUT';										// $00FF, 255
		WM_KEYDOWN								: result:='WM_KEYDOWN';									// $0100, 256
		WM_KEYUP									: result:='WM_KEYUP';										// $0101, 257
		WM_CHAR										: result:='WM_CHAR';										// $0102, 258
		WM_DEADCHAR								: result:='WM_DEADCHAR';								// $0103, 259
		WM_SYSKEYDOWN							: result:='WM_SYSKEYDOWN';							// $0104, 260
		WM_SYSKEYUP								: result:='WM_SYSKEYUP';								// $0105, 261
		WM_SYSCHAR								: result:='WM_SYSCHAR';									// $0106, 262
		WM_SYSDEADCHAR						: result:='WM_SYSDEADCHAR';							// $0107, 263
		WM_KEYLAST								: result:='WM_KEYLAST';									// $0108, 264

    WM_IME_STARTCOMPOSITION		: result:='WM_IME_STARTCOMPOSITION';		// $010D, 269
		WM_IME_ENDCOMPOSITION			: result:='WM_IME_ENDCOMPOSITION';			// $010E, 270
		WM_IME_COMPOSITION				: result:='WM_IME_COMPOSITION';					// $010F, 271
		WM_INITDIALOG							: result:='WM_INITDIALOG';							// $0110, 272

		WM_COMMAND								:	begin																	// $0111, 273
                            			case (wParam SHR 16) of
  																CBN_SELCHANGE  	 	: result:='WM_COMMAND : CBN_SELCHANGE';				 // $0001, 1
  																CBN_DBLCLK     	 	: result:='WM_COMMAND : CBN_DBLCLK';					 // $0002, 2
  																CBN_SETFOCUS   	 	: result:='WM_COMMAND : CBN_SETFOCUS';				 // $0003, 3
                                  CBN_KILLFOCUS  	 	: result:='WM_COMMAND : CBN_KILLFOCUS';				 // $0004, 4
                                  CBN_EDITCHANGE 	 	: result:='WM_COMMAND : CBN_EDITCHANGE';			 // $0005, 5
  																CBN_EDITUPDATE 	 	: result:='WM_COMMAND : CBN_EDITUPDATE';			 // $0006, 6
  																CBN_DROPDOWN   	 	: result:='WM_COMMAND : CBN_DROPDOWN';				 // $0007, 7
  																CBN_CLOSEUP    	 	: result:='WM_COMMAND : CBN_CLOSEUP';					 // $0008, 8
  																CBN_SELENDOK   	 	: result:='WM_COMMAND : CBN_SELENDOK';				 // $0009, 9
                                  CBN_SELENDCANCEL 	: result:='WM_COMMAND : CBN_SELENDCANCEL';		 // $000A, 10
         													$FFFF				  	 	: result:='WM_COMMAND : CBN_ERRSPACE';				 // $FFFF, 65535

                                  EN_SETFOCUS  		 	: result:='WM_COMMAND : EN_SETFOCUS';					 // $0100, 256
  																EN_KILLFOCUS 		 	: result:='WM_COMMAND : EN_KILLFOCUS';				 // $0200, 512
                                  EN_CHANGE    		 	: result:='WM_COMMAND : EN_CHANGE';						 // $0300, 768
  																EN_UPDATE    		 	: result:='WM_COMMAND : EN_UPDATE';						 // $0400, 1024
                                  EN_ERRSPACE  		 	: result:='WM_COMMAND : EN_ERRSPACE';					 // $0500, 1280
  																EN_MAXTEXT   		 	: result:='WM_COMMAND : EN_MAXTEXT';					 // $0501, 1281
                                  EN_HSCROLL   		 	: result:='WM_COMMAND : EN_HSCROLL';					 // $0601, 1537
  																EN_VSCROLL   		 	: result:='WM_COMMAND : EN_VSCROLL';					 // $0602, 1538
                             			$0700							:	result:='WM_COMMAND : EN_ALIGN_LTR_EC';			 // $0700, 1792
                                  $0701							: result:='WM_COMMAND : EN_ALIGN_RTL_EC';      // $0701, 1793

                            			else result:='WM_COMMAND : $'+IntToHex(wParam SHR 16, 4);
                            			end;
  															end;

		WM_SYSCOMMAND							: begin																															 // $0112, 274
                                	case (wParam AND $FFF0) of
                                  SC_SIZE						: result:='WM_SYSCOMMAND : SC_SIZE';         // $F000, 61440
                                  SC_SEPARATOR			: result:='WM_SYSCOMMAND : SC_SEPARATOR';    // $F00F, 61455
																	SC_MOVE						: result:='WM_SYSCOMMAND : SC_MOVE';         // $F010, 61456
                                  SC_MINIMIZE       : result:='WM_SYSCOMMAND : SC_MINIMIZE';     // $F020, 61472
                                  SC_MAXIMIZE       : result:='WM_SYSCOMMAND : SC_MAXIMIZE';     // $F030, 61488
																	SC_NEXTWINDOW			: result:='WM_SYSCOMMAND : SC_NEXTWINDOW';   // $F040, 61504
																	SC_PREVWINDOW			: result:='WM_SYSCOMMAND : SC_PREVWINDOW';   // $F050, 61520
																	SC_CLOSE					: result:='WM_SYSCOMMAND : SC_CLOSE';        // $F060, 61536
																	SC_VSCROLL				: result:='WM_SYSCOMMAND : SC_VSCROLL';      // $F070, 61552
																	SC_HSCROLL				: result:='WM_SYSCOMMAND : SC_HSCROLL';      // $F080, 61568
																	SC_MOUSEMENU			: result:='WM_SYSCOMMAND : SC_MOUSEMENU';    // $F090, 61584
                                  SC_KEYMENU        : result:='WM_SYSCOMMAND : SC_KEYMENU';      // $F100, 61696
																	SC_ARRANGE				: result:='WM_SYSCOMMAND : SC_ARRANGE';      // $F110, 61712
																	SC_RESTORE				: result:='WM_SYSCOMMAND : SC_RESTORE';      // $F120, 61728
                                  SC_TASKLIST       : result:='WM_SYSCOMMAND : SC_TASKLIST';     // $F130, 61744
																	SC_SCREENSAVE			: result:='WM_SYSCOMMAND : SC_SCREENSAVE';   // $F140, 61760
																	SC_HOTKEY					: result:='WM_SYSCOMMAND : SC_HOTKEY';       // $F150, 61776
																	SC_DEFAULT				: result:='WM_SYSCOMMAND : SC_DEFAULT';      // $F160, 61792
																	SC_MONITORPOWER		: result:='WM_SYSCOMMAND : SC_MONITORPOWER'; // $F170, 61808
                                  SC_CONTEXTHELP    : result:='WM_SYSCOMMAND : SC_CONTEXTHELP';  // $F180, 61824
                            			else result:='WM_SYSCOMMAND : 4'+IntToHex(wParam, 8);
                            			end;
    														end;

		WM_TIMER									: result:='WM_TIMER';										// $0113, 275
		WM_HSCROLL								: result:='WM_HSCROLL';									// $0114, 276
		WM_VSCROLL								: result:='WM_VSCROLL';									// $0115, 277
		WM_INITMENU								: result:='WM_INITMENU';								// $0116, 278
		WM_INITMENUPOPUP					: result:='WM_INITMENUPOPUP';						// $0117, 279
		$0118											: result:='WM_SYSTIMER';   		          // $0118, 280   // Undocumented

		WM_MENUSELECT							: result:='WM_MENUSELECT';							// $011F, 287
		WM_MENUCHAR								: result:='WM_MENUCHAR';								// $0120, 288
		WM_ENTERIDLE							: result:='WM_ENTERIDLE';								// $0121, 289
		WM_MENURBUTTONUP					: result:='WM_MENURBUTTONUP';						// $0122, 290
		WM_MENUDRAG								: result:='WM_MENUDRAG';								// $0123, 291
		WM_MENUGETOBJECT					: result:='WM_MENUGETOBJECT';						// $0124, 292
		WM_UNINITMENUPOPUP				: result:='WM_UNINITMENUPOPUP';					// $0125, 293
		WM_MENUCOMMAND						: result:='WM_MENUCOMMAND';							// $0126, 294
		WM_CHANGEUISTATE					: result:='WM_CHANGEUISTATE';						// $0127, 295
		WM_UPDATEUISTATE					: result:='WM_UPDATEUISTATE';						// $0128, 296
		WM_QUERYUISTATE						: result:='WM_QUERYUISTATE';						// $0129, 297

		$0131											: result:='WM_LBTRACKPOINT';            // $0131, 305   // Undocumented
		WM_CTLCOLORMSGBOX					: result:='WM_CTLCOLORMSGBOX';					// $0132, 306
		WM_CTLCOLOREDIT						: result:='WM_CTLCOLOREDIT';						// $0133, 307
		WM_CTLCOLORLISTBOX				: result:='WM_CTLCOLORLISTBOX';					// $0134, 308
		WM_CTLCOLORBTN						: result:='WM_CTLCOLORBTN';							// $0135, 309
		WM_CTLCOLORDLG						: result:='WM_CTLCOLORDLG';							// $0136, 310
		WM_CTLCOLORSCROLLBAR			: result:='WM_CTLCOLORSCROLLBAR';				// $0137, 311
		WM_CTLCOLORSTATIC					: result:='WM_CTLCOLORSTATIC';					// $0138, 312

	 	CB_GETEDITSEL            	: result:='CB_GETEDITSEL';							// $0140, 320
  	CB_LIMITTEXT             	: result:='CB_LIMITTEXT';								// $0141, 321
  	CB_SETEDITSEL            	: result:='CB_SETEDITSEL';							// $0142, 322
  	CB_ADDSTRING             	: result:='CB_ADDSTRING';								// $0143, 323
  	CB_DELETESTRING          	: result:='CB_DELETESTRING';						// $0144, 324
  	CB_DIR                   	: result:='CB_DIR';											// $0145, 325
  	CB_GETCOUNT              	: result:='CB_GETCOUNT';								// $0146, 326
  	CB_GETCURSEL             	: result:='CB_GETCURSEL';								// $0147, 327
  	CB_GETLBTEXT             	: result:='CB_GETLBTEXT';								// $0148, 328
  	CB_GETLBTEXTLEN          	: result:='CB_GETLBTEXTLEN';						// $0149, 329
  	CB_INSERTSTRING          	: result:='CB_INSERTSTRING';						// $014A, 330
  	CB_RESETCONTENT          	: result:='CB_RESETCONTENT';						// $014B, 331
  	CB_FINDSTRING            	: result:='CB_FINDSTRING';							// $014C, 332
  	CB_SELECTSTRING          	: result:='CB_SELECTSTRING';						// $014D, 333
  	CB_SETCURSEL             	: result:='CB_SETCURSEL';								// $014E, 334
  	CB_SHOWDROPDOWN          	: result:='CB_SHOWDROPDOWN';						// $014F, 335
  	CB_GETITEMDATA           	: result:='CB_GETITEMDATA';							// $0150, 336
  	CB_SETITEMDATA           	: result:='CB_SETITEMDATA';							// $0151, 337
  	CB_GETDROPPEDCONTROLRECT 	: result:='CB_GETDROPPEDCONTROLRECT';		// $0152, 338
  	CB_SETITEMHEIGHT         	: result:='CB_SETITEMHEIGHT';						// $0153, 339
  	CB_GETITEMHEIGHT         	: result:='CB_GETITEMHEIGHT';						// $0154, 340
  	CB_SETEXTENDEDUI         	: result:='CB_SETEXTENDEDUI';						// $0155, 341
  	CB_GETEXTENDEDUI         	: result:='CB_GETEXTENDEDUI';						// $0156, 342
  	CB_GETDROPPEDSTATE       	: result:='CB_GETDROPPEDSTATE';					// $0157, 343
  	CB_FINDSTRINGEXACT       	: result:='CB_FINDSTRINGEXACT';					// $0158, 344
  	CB_SETLOCALE             	: result:='CB_SETLOCALE';								// $0159, 345
  	CB_GETLOCALE             	: result:='CB_GETLOCALE';								// $015A, 346
  	CB_GETTOPINDEX           	: result:='CB_GETTOPINDEX';							// $015B, 347
  	CB_SETTOPINDEX           	: result:='CB_SETTOPINDEX';							// $015C, 348
  	CB_GETHORIZONTALEXTENT   	: result:='CB_GETHORIZONTALEXTENT';			// $015D, 349
  	CB_SETHORIZONTALEXTENT   	: result:='CB_SETHORIZONTALEXTENT';			// $015E, 350
  	CB_GETDROPPEDWIDTH       	: result:='CB_GETDROPPEDWIDTH';					// $015F, 351
  	CB_SETDROPPEDWIDTH       	: result:='CB_SETDROPPEDWIDTH';					// $0160, 352
  	CB_INITSTORAGE           	: result:='CB_INITSTORAGE';							// $0161, 353
  	CB_MSGMAX                	: result:='CB_MSGMAX';									// $0162, 354

		LB_ADDSTRING            	: result:='LB_ADDSTRING';								// $0180, 384
  	LB_INSERTSTRING         	: result:='LB_INSERTSTRING';						// $0181, 385
  	LB_DELETESTRING         	: result:='LB_DELETESTRING';						// $0182, 386
  	LB_SELITEMRANGEEX       	: result:='LB_SELITEMRANGEEX';					// $0183, 387
  	LB_RESETCONTENT         	: result:='LB_RESETCONTENT';						// $0184, 388
  	LB_SETSEL               	: result:='LB_SETSEL';									// $0185, 389
  	LB_SETCURSEL            	: result:='LB_SETCURSEL';								// $0186, 390
  	LB_GETSEL               	: result:='LB_GETSEL';									// $0187, 391
  	LB_GETCURSEL            	: result:='LB_GETCURSEL';								// $0188, 392
  	LB_GETTEXT              	: result:='LB_GETTEXT';									// $0189, 393
  	LB_GETTEXTLEN           	: result:='LB_GETTEXTLEN';							// $018A, 394
  	LB_GETCOUNT             	: result:='LB_GETCOUNT';								// $018B, 395
  	LB_SELECTSTRING         	: result:='LB_SELECTSTRING';						// $018C, 396
  	LB_DIR                  	: result:='LB_DIR';											// $018D, 397
  	LB_GETTOPINDEX          	: result:='LB_GETTOPINDEX';							// $018E, 398
  	LB_FINDSTRING           	: result:='LB_FINDSTRING';							// $018F, 399
  	LB_GETSELCOUNT          	: result:='LB_GETSELCOUNT';							// $0190, 400
  	LB_GETSELITEMS          	: result:='LB_GETSELITEMS';							// $0191, 401
  	LB_SETTABSTOPS          	: result:='LB_SETTABSTOPS';							// $0192, 402
  	LB_GETHORIZONTALEXTENT  	: result:='LB_GETHORIZONTALEXTENT';			// $0193, 403
  	LB_SETHORIZONTALEXTENT  	: result:='LB_SETHORIZONTALEXTENT';			// $0194, 404
  	LB_SETCOLUMNWIDTH       	: result:='LB_SETCOLUMNWIDTH';					// $0195, 405
  	LB_ADDFILE              	: result:='LB_ADDFILE';									// $0196, 406
  	LB_SETTOPINDEX          	: result:='LB_SETTOPINDEX';							// $0197, 407
  	LB_GETITEMRECT          	: result:='LB_GETITEMRECT';							// $0198, 408
  	LB_GETITEMDATA          	: result:='LB_GETITEMDATA';							// $0199, 409
  	LB_SETITEMDATA          	: result:='LB_SETITEMDATA';							// $019A, 410
  	LB_SELITEMRANGE         	: result:='LB_SELITEMRANGE';						// $019B, 411
  	LB_SETANCHORINDEX       	: result:='LB_SETANCHORINDEX';					// $019C, 412
  	LB_GETANCHORINDEX       	: result:='LB_GETANCHORINDEX';					// $019D, 413
  	LB_SETCARETINDEX        	: result:='LB_SETCARETINDEX';						// $019E, 414
  	LB_GETCARETINDEX        	: result:='LB_GETCARETINDEX';						// $019F, 415
  	LB_SETITEMHEIGHT        	: result:='LB_SETITEMHEIGHT';						// $01A0, 416
  	LB_GETITEMHEIGHT        	: result:='LB_GETITEMHEIGHT';						// $01A1, 417
  	LB_FINDSTRINGEXACT      	: result:='LB_FINDSTRINGEXACT';					// $01A2, 418

  	LB_SETLOCALE            	: result:='LB_SETLOCALE';								// $01A5, 421
  	LB_GETLOCALE            	: result:='LB_GETLOCALE';								// $01A6, 422
  	LB_SETCOUNT             	: result:='LB_SETCOUNT';								// $01A7, 423
  	LB_INITSTORAGE          	: result:='LB_INITSTORAGE';							// $01A8, 424
  	LB_ITEMFROMPOINT        	: result:='LB_ITEMFROMPOINT';						// $01A9, 425

  	LB_MSGMAX               	: result:='LB_MSGMAX';									// $01B0, 432

		WM_MOUSEMOVE							: result:='WM_MOUSEMOVE';								// $0200, 512
		WM_LBUTTONDOWN						: result:='WM_LBUTTONDOWN';							// $0201, 513
		WM_LBUTTONUP							: result:='WM_LBUTTONUP';								// $0202, 514
		WM_LBUTTONDBLCLK					: result:='WM_LBUTTONDBLCLK';						// $0203, 515
		WM_RBUTTONDOWN						: result:='WM_RBUTTONDOWN';							// $0204, 516
		WM_RBUTTONUP							: result:='WM_RBUTTONUP';								// $0205, 517
		WM_RBUTTONDBLCLK					: result:='WM_RBUTTONDBLCLK';						// $0206, 518
		WM_MBUTTONDOWN						: result:='WM_MBUTTONDOWN';							// $0207, 519
		WM_MBUTTONUP							: result:='WM_MBUTTONUP';								// $0208, 520
		WM_MBUTTONDBLCLK					: result:='WM_MBUTTONDBLCLK';						// $0209, 521
		WM_MOUSEWHEEL							: result:='WM_MOUSEWHEEL';							// $020A, 522

		WM_PARENTNOTIFY						: result:='WM_PARENTNOTIFY';						// $0210, 528
		WM_ENTERMENULOOP					: result:='WM_ENTERMENULOOP';						// $0211, 529
		WM_EXITMENULOOP						: result:='WM_EXITMENULOOP';						// $0212, 530
		WM_NEXTMENU								: result:='WM_NEXTMENU';								// $0213, 531
		WM_SIZING									: result:='WM_SIZING';									// $0214, 532
		WM_CAPTURECHANGED					: result:='WM_CAPTURECHANGED';					// $0215, 533
		WM_MOVING									: result:='WM_MOVING';									// $0216, 534

		WM_POWERBROADCAST					: result:='WM_POWERBROADCAST';					// $0218, 536
		WM_DEVICECHANGE						: result:='WM_DEVICECHANGE';						// $0219, 537

 		WM_MDICREATE							: result:='WM_MDICREATE';								// $0220, 544
		WM_MDIDESTROY							: result:='WM_MDIDESTROY';							// $0221, 545
		WM_MDIACTIVATE						: result:='WM_MDIACTIVATE';							// $0222, 546
		WM_MDIRESTORE							: result:='WM_MDIRESTORE';							// $0223, 547
		WM_MDINEXT								: result:='WM_MDINEXT';									// $0224, 548
		WM_MDIMAXIMIZE						: result:='WM_MDIMAXIMIZE';							// $0225, 549
		WM_MDITILE								: result:='WM_MDITILE';									// $0226, 550
		WM_MDICASCADE							: result:='WM_MDICASCADE';							// $0227, 551
		WM_MDIICONARRANGE					: result:='WM_MDIICONARRANGE';					// $0228, 552
		WM_MDIGETACTIVE						: result:='WM_MDIGETACTIVE';						// $0229, 553
		$022A											: result:='WM_DROPOBJECT';              // $022A, 554   // Undocumented
		$022B											: result:='WM_QUERYDROPOBJECT';         // $022B, 555   // Undocumented
		$022C											: result:='WM_BEGINDRAG';               // $022C, 556   // Undocumented
		$022D											: result:='WM_DRAGLOOP';   		          // $022D, 557   // Undocumented
		$022E											: result:='WM_DRAGSELECT';              // $022E, 558   // Undocumented
		$022F											: result:='WM_DRAGMOVE';  		          // $022F, 559   // Undocumented
		WM_MDISETMENU							: result:='WM_MDISETMENU';							// $0230, 560
		WM_ENTERSIZEMOVE					: result:='WM_ENTERSIZEMOVE';						// $0231, 561
		WM_EXITSIZEMOVE						: result:='WM_EXITSIZEMOVE';						// $0232, 562
		WM_DROPFILES							: result:='WM_DROPFILES';								// $0233, 563
		WM_MDIREFRESHMENU					: result:='WM_MDIREFRESHMENU';					// $0234, 564

		WM_IME_SETCONTEXT					: result:='WM_IME_SETCONTEXT';					// $0281, 641
		WM_IME_NOTIFY							: result:='WM_IME_NOTIFY';							// $0282, 642
		WM_IME_CONTROL						: result:='WM_IME_CONTROL';							// $0283, 643
		WM_IME_COMPOSITIONFULL		: result:='WM_IME_COMPOSITIONFULL';			// $0284, 644
		WM_IME_SELECT							: result:='WM_IME_SELECT';							// $0285, 645
		WM_IME_CHAR								: result:='WM_IME_CHAR';								// $0286, 646

		WM_IME_REQUEST						: result:='WM_IME_REQUEST';							// $0288, 648

		WM_IME_KEYDOWN						: result:='WM_IME_KEYDOWN';							// $0290, 656
		WM_IME_KEYUP							: result:='WM_IME_KEYUP';								// $0291, 657

 		WM_NCMOUSEHOVER						: result:='WM_NCMOUSEHOVER';						// $02A0, 672
		WM_MOUSEHOVER							: result:='WM_MOUSEHOVER';							// $02A1, 673
		WM_NCMOUSELEAVE						: result:='WM_NCMOUSELEAVE';						// $02A2, 674
		WM_MOUSELEAVE							: result:='WM_MOUSELEAVE';							// $02A3, 675

		WM_WTSSESSION_CHANGE			: result:='WM_WTSSESSION_CHANGE';				// $02B1, 689

		WM_TABLET_FIRST						: result:='WM_TABLET_FIRST';						// $02C0, 704

		WM_TABLET_LAST						: result:='WM_TABLET_LAST';							// $02DF, 735

		WM_CUT										: result:='WM_CUT';											// $0300, 768
		WM_COPY										: result:='WM_COPY';										// $0301, 769

		WM_PASTE									: result:='WM_PASTE';										// $0302, 770
		WM_CLEAR									: result:='WM_CLEAR';										// $0303, 771
		WM_UNDO										: result:='WM_UNDO';										// $0304, 772
		WM_RENDERFORMAT						: result:='WM_RENDERFORMAT';						// $0305, 773
		WM_RENDERALLFORMATS				: result:='WM_RENDERALLFORMATS';				// $0306, 774
		WM_DESTROYCLIPBOARD				: result:='WM_DESTROYCLIPBOARD';				// $0307, 775
		WM_DRAWCLIPBOARD					: result:='WM_DRAWCLIPBOARD';						// $0308, 776
		WM_PAINTCLIPBOARD					: result:='WM_PAINTCLIPBOARD';					// $0309, 777
		WM_VSCROLLCLIPBOARD				: result:='WM_VSCROLLCLIPBOARD';				// $030A, 778
		WM_SIZECLIPBOARD					: result:='WM_SIZECLIPBOARD';						// $030B, 779
		WM_ASKCBFORMATNAME				: result:='WM_ASKCBFORMATNAME';					// $030C, 780
		WM_CHANGECBCHAIN					: result:='WM_CHANGECBCHAIN';						// $030D, 781
		WM_HSCROLLCLIPBOARD				: result:='WM_HSCROLLCLIPBOARD';				// $030E, 782
		WM_QUERYNEWPALETTE				: result:='WM_QUERYNEWPALETTE';					// $030F, 783
		WM_PALETTEISCHANGING			: result:='WM_PALETTEISCHANGING';				// $0310, 784
		WM_PALETTECHANGED					: result:='WM_PALETTECHANGED';					// $0311, 785
		WM_HOTKEY									: result:='WM_HOTKEY';									// $0312, 786

		WM_PRINT									: result:='WM_PRINT';										// $0317, 791
		WM_PRINTCLIENT						: result:='WM_PRINTCLIENT';							// $0318, 792
		WM_APPCOMMAND							: result:='WM_APPCOMMAND';							// $0319, 793
		WM_THEMECHANGED						: result:='WM_THEMECHANGED';						// $031A, 794

		WM_HANDHELDFIRST					: result:='WM_HANDHELDFIRST';						// $0358, 856

		WM_HANDHELDLAST						: result:='WM_HANDHELDLAST';						// $035F, 863

		WM_PENWINFIRST						: result:='WM_PENWINFIRST';							// $0380, 896

		WM_PENWINLAST							: result:='WM_PENWINLAST';							// $038F, 911
		WM_COALESCE_FIRST					: result:='WM_COALESCE_FIRST';					// $0390, 912

		WM_COALESCE_LAST					: result:='WM_COALESCE_LAST';						// $039F, 927

		WM_DDE_INITIATE						: result:='WM_DDE_INITIATE';						// $03E0, 992 					//WM_DDE_FIRST+0
		WM_DDE_TERMINATE					: result:='WM_DDE_TERMINATE';						// $03E1, 993 					//WM_DDE_FIRST+1
		WM_DDE_ADVISE							: result:='WM_DDE_ADVISE';							// $03E2, 994 					//WM_DDE_FIRST+2
		WM_DDE_UNADVISE						: result:='WM_DDE_UNADVISE';						// $03E3, 995 					//WM_DDE_FIRST+3
		WM_DDE_ACK								: result:='WM_DDE_ACK';									// $03E4, 996 					//WM_DDE_FIRST+4
		WM_DDE_DATA								: result:='WM_DDE_DATA';								// $03E5, 997 					//WM_DDE_FIRST+5
		WM_DDE_REQUEST						: result:='WM_DDE_REQUEST';							// $03E6, 998 					//WM_DDE_FIRST+6
		WM_DDE_POKE								: result:='WM_DDE_POKE';								// $03E7, 999 					//WM_DDE_FIRST+7
		WM_DDE_EXECUTE						: result:='WM_DDE_EXECUTE';							// $03E8, 1000 					//WM_DDE_FIRST+8
		else												result:='WM_$'+IntToHex(msg,8);
    end;
end;


end.
Reply With Quote
The Following User Gave Reputation+1 to HarrySpoofer For This Useful Post:
chessgod101 (11-20-2020)
The Following 2 Users Say Thank You to HarrySpoofer For This Useful Post:
chessgod101 (11-20-2020), Zipdecode (11-20-2020)