Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendMessage ( ) API call . . . 3

Status
Not open for further replies.

ShyFox

Programmer
Mar 22, 2003
210
0
0
ES
Hy
I found this api call at [blue]www.universalthread.com[/blue] by Erik Moore:

#DEFINE WM_CLOSE 0x10

DECLARE INTEGER FindWindow IN Win32API STRING, STRING
hWnd = FindWindow(0,"MSDN Library - January 2000")
=SendMessage(hWnd, WM_CLOSE, 0, 0)

Now he defines only one message: WM_CLOSE
Does anyone know the other mesages?
Regards

As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
 
Shyfox

There are so many to choose from. They are listed in most WIN32 Api Books, but if there are any message values in particular you are looking for, please post back and I will let you know.


#DEFINE WM_CUT 0xH300
#DEFINE WM_PASTE 0xH302




WTrueman
...if it works dont mess with it
 
[tt]
DEFINE WM_ACTIVATE 0x6
DEFINE WM_ACTIVATEAPP 0x1C
DEFINE WM_APPCOMMAND 0x319
DEFINE WM_ASKCBFORMATNAME 0x30C
DEFINE WM_CANCELJOURNAL 0x4B
DEFINE WM_CANCELMODE 0x1F
DEFINE WM_CAPTURECHANGED 0x1F
DEFINE WM_CAPTURECHANGED_R 0x215
DEFINE WM_CHANGECBCHAIN 0x30D
DEFINE WM_CHAR 0x102
DEFINE WM_CHARTOITEM 0x2F
DEFINE WM_CHILDACTIVATE 0x22
DEFINE WM_CHOOSEFONT_GETLOGFONT 0x401
DEFINE WM_CHOOSEFONT_SETFLAGS 0x400
DEFINE WM_CHOOSEFONT_SETLOGFONT 0x400
DEFINE WM_CLEAR 0x303
DEFINE WM_CLOSE 0x10
DEFINE WM_COMMAND 0x111
DEFINE WM_COMPACTING 0x41
DEFINE WM_COMPAREITEM 0x39
DEFINE WM_CONTEXTMENU 0x7B
DEFINE WM_CONVERTREQUESTEX 0x108
DEFINE WM_COPY 0x301
DEFINE WM_COPYDATA 0x4A
DEFINE WM_CREATE 0x1
DEFINE WM_CTLCOLORBTN 0x135
DEFINE WM_CTLCOLORDLG 0x136
DEFINE WM_CTLCOLOREDIT 0x133
DEFINE WM_CTLCOLORLISTBOX 0x134
DEFINE WM_CTLCOLORMSGBOX 0x132
DEFINE WM_CTLCOLORSCROLLBAR 0x137
DEFINE WM_CTLCOLORSTATIC 0x138
DEFINE WM_CUT 0x300
DEFINE WM_DDE_ACK 0x3E0
DEFINE WM_DDE_ADVISE 0x3E0
DEFINE WM_DDE_DATA 0x3E0
DEFINE WM_DDE_EXECUTE 0x3E0
DEFINE WM_DDE_FIRST 0x3E0
DEFINE WM_DDE_INITIATE 0x3E0
DEFINE WM_DDE_LAST 0x3E0
DEFINE WM_DDE_POKE 0x3E0
DEFINE WM_DDE_REQUEST 0x3E0
DEFINE WM_DDE_TERMINATE 0x3E0
DEFINE WM_DDE_UNADVISE 0x3E0
DEFINE WM_DEADCHAR 0x103
DEFINE WM_DELETEITEM 0x2D
DEFINE WM_DESTROY 0x2
DEFINE WM_DESTROYCLIPBOARD 0x307
DEFINE WM_DEVICECHANGE 0x219
DEFINE WM_DEVMODECHANGE 0x1B
DEFINE WM_DRAWCLIPBOARD 0x308
DEFINE WM_DRAWITEM 0x2B
DEFINE WM_DROPFILES 0x233
DEFINE WM_ENABLE 0xA
DEFINE WM_ENDSESSION 0x16
DEFINE WM_ENTERIDLE 0x121
DEFINE WM_ENTERSIZEMOVE 0x231
DEFINE WM_ENTERMENULOOP 0x211
DEFINE WM_ERASEBKGND 0x14
DEFINE WM_EXITMENULOOP 0x212
DEFINE WM_EXITSIZEMOVE 0x232
DEFINE WM_FONTCHANGE 0x1D
DEFINE WM_GETDLGCODE 0x87
DEFINE WM_GETFONT 0x31
DEFINE WM_GETHOTKEY 0x33
DEFINE WM_GETICON 0x7F
DEFINE WM_GETMINMAXINFO 0x24
DEFINE WM_GETTEXT 0xD
DEFINE WM_GETTEXTLENGTH 0xE
DEFINE WM_HELP 0x53
DEFINE WM_HOTKEY 0x312
DEFINE WM_HSCROLL 0x114
DEFINE WM_HSCROLLCLIPBOARD 0x30E
DEFINE WM_ICONERASEBKGND 0x27
DEFINE WM_IME_CHAR 0x286
DEFINE WM_IME_COMPOSITION 0x10F
DEFINE WM_IME_COMPOSITIONFULL 0x284
DEFINE WM_IME_CONTROL 0x283
DEFINE WM_IME_ENDCOMPOSITION 0x10E
DEFINE WM_IME_KEYDOWN 0x290
DEFINE WM_IME_KEYLAST 0x10F
DEFINE WM_IME_KEYUP 0x291
DEFINE WM_IME_NOTIFY 0x282
DEFINE WM_IME_SELECT 0x285
DEFINE WM_IME_SETCONTEXT 0x281
DEFINE WM_IME_STARTCOMPOSITION 0x10D
DEFINE WM_INITDIALOG 0x110
DEFINE WM_INITMENU 0x116
DEFINE WM_INITMENUPOPUP 0x117
DEFINE WM_INPUTLANGCHANGEREQUEST 0x50
DEFINE WM_INPUTLANGCHANGE 0x51
DEFINE WM_KEYDOWN 0x100
DEFINE WM_KEYUP 0x101
DEFINE WM_KILLFOCUS 0x8
DEFINE WM_LBUTTONDBLCLK 0x203
DEFINE WM_LBUTTONDOWN 0x201
DEFINE WM_LBUTTONUP 0x202
DEFINE WM_MBUTTONDBLCLK 0x209
DEFINE WM_MBUTTONDOWN 0x207
DEFINE WM_MBUTTONUP 0x208
DEFINE WM_MDIACTIVATE 0x222
DEFINE WM_MDICASCADE 0x227
DEFINE WM_MDICREATE 0x220
DEFINE WM_MDIDESTROY 0x221
DEFINE WM_MDIGETACTIVE 0x229
DEFINE WM_MDIICONARRANGE 0x228
DEFINE WM_MDIMAXIMIZE 0x225
DEFINE WM_MDINEXT 0x224
DEFINE WM_MDIREFRESHMENU 0x234
DEFINE WM_MDIRESTORE 0x223
DEFINE WM_MDISETMENU 0x230
DEFINE WM_MDITILE 0x226
DEFINE WM_MEASUREITEM 0x2C
DEFINE WM_MENUCHAR 0x120
DEFINE WM_MENUSELECT 0x11F
DEFINE WM_MENURBUTTONUP 0x122
DEFINE WM_MENUDRAG 0x123
DEFINE WM_MENUGETOBJECT 0x124
DEFINE WM_MENUCOMMAND 0x126
DEFINE WM_MOUSEACTIVATE 0x21
DEFINE WM_MOUSEHOVER 0x2A1
DEFINE WM_MOUSELEAVE 0x2A3
DEFINE WM_MOUSEMOVE 0x200
DEFINE WM_MOUSEWHEEL 0x20A
DEFINE WM_MOVE 0x3
DEFINE WM_MOVING 0x216
DEFINE WM_NCACTIVATE 0x86
DEFINE WM_NCCALCSIZE 0x83
DEFINE WM_NCCREATE 0x81
DEFINE WM_NCDESTROY 0x82
DEFINE WM_NCHITTEST 0x84
DEFINE WM_NCLBUTTONDBLCLK 0xA3
DEFINE WM_NCLBUTTONDOWN 0xA1
DEFINE WM_NCLBUTTONUP 0xA2
DEFINE WM_NCMBUTTONDBLCLK 0xA9
DEFINE WM_NCMBUTTONDOWN 0xA7
DEFINE WM_NCMBUTTONUP 0xA8
DEFINE WM_NCMOUSEMOVE 0xA0
DEFINE WM_NCPAINT 0x85
DEFINE WM_NCRBUTTONDBLCLK 0xA6
DEFINE WM_NCRBUTTONDOWN 0xA4
DEFINE WM_NCRBUTTONUP 0xA5
DEFINE WM_NEXTDLGCTL 0x28
DEFINE WM_NEXTMENU 0x213
DEFINE WM_NOTIFY 0x4E
DEFINE WM_NULL 0x0
DEFINE WM_PAINT 0xF
DEFINE WM_PAINTCLIPBOARD 0x309
DEFINE WM_PAINTICON 0x26
DEFINE WM_PALETTECHANGED 0x311
DEFINE WM_PALETTEISCHANGING 0x310
DEFINE WM_PARENTNOTIFY 0x210
DEFINE WM_PASTE 0x302
DEFINE WM_PENWINFIRST 0x380
DEFINE WM_PENWINLAST 0x38F
DEFINE WM_POWER 0x48
DEFINE WM_POWERBROADCAST 0x218
DEFINE WM_PRINT 0x317
DEFINE WM_PRINTCLIENT 0x318
DEFINE WM_PSD_ENVSTAMPRECT 0x400
DEFINE WM_PSD_FULLPAGERECT 0x400
DEFINE WM_PSD_GREEKTEXTRECT 0x400
DEFINE WM_PSD_MARGINRECT 0x400
DEFINE WM_PSD_MINMARGINRECT 0x400
DEFINE WM_PSD_PAGESETUPDLG 0x400
DEFINE WM_PSD_YAFULLPAGERECT 0x400
DEFINE WM_QUERYDRAGICON 0x37
DEFINE WM_QUERYENDSESSION 0x11
DEFINE WM_QUERYNEWPALETTE 0x30F
DEFINE WM_QUERYOPEN 0x13
DEFINE WM_QUEUESYNC 0x23
DEFINE WM_QUIT 0x12
DEFINE WM_RBUTTONDBLCLK 0x206
DEFINE WM_RBUTTONDOWN 0x204
DEFINE WM_RBUTTONUP 0x205
DEFINE WM_RENDERALLFORMATS 0x306
DEFINE WM_RENDERFORMAT 0x305
DEFINE WM_SETCURSOR 0x20
DEFINE WM_SETFOCUS 0x7
DEFINE WM_SETFONT 0x30
DEFINE WM_SETHOTKEY 0x32
DEFINE WM_SETICON 0x80
DEFINE WM_SETREDRAW 0xB
DEFINE WM_SETTEXT 0xC
DEFINE WM_SETTINGCHANGE 0x1A
DEFINE WM_SHOWWINDOW 0x18
DEFINE WM_SIZE 0x5
DEFINE WM_SIZING 0x214
DEFINE WM_SIZECLIPBOARD 0x30B
DEFINE WM_SPOOLERSTATUS 0x2A
DEFINE WM_SYSCHAR 0x106
DEFINE WM_SYSCOLORCHANGE 0x15
DEFINE WM_SYSCOMMAND 0x112
DEFINE WM_SYSDEADCHAR 0x107
DEFINE WM_SYSKEYDOWN 0x104
DEFINE WM_SYSKEYUP 0x105
DEFINE WM_TIMECHANGE 0x1E
DEFINE WM_TIMER 0x113
DEFINE WM_UNDO 0x304
DEFINE WM_USER 0x400
DEFINE WM_VKEYTOITEM 0x2E
DEFINE WM_VSCROLL 0x115
DEFINE WM_VSCROLLCLIPBOARD 0x30A
DEFINE WM_WINDOWPOSCHANGED 0x47
DEFINE WM_WINDOWPOSCHANGING 0x46
DEFINE WM_WININICHANGE 0x1A
[/tt]

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
slighthaze (IS/IT--Manageme)
Oh, god ... , oh my ... [shocked]
Big, big ...B I G S T A R from me [roll2]

Thankyou guys


As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
 
Just a note, while these are all valid entries for the 2nd parameter of SendMessage(), the 3rd and 4th parameters may require much more info depending on which option for the 2nd is chosen.

Rick
 
ShyFox,

Glad you liked it, and thank you for the star.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top