自己在msdn找了点料 MSG Structure--------------------------------------------------------------------------------The MSG structure contains message information from a thread's message queue. Syntaxtypedef struct { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt; } MSG, *PMSG; Membershwnd Handle to the window whose window procedure receives the message. message Specifies the message identifier. Applications can only use the low word; the high word is reserved by the system. wParam Specifies additional information about the message. The exact meaning depends on the value of the message member. lParam Specifies additional information about the message. The exact meaning depends on the value of the message member. time Specifies the time at which the message was posted. pt Specifies the cursor position, in screen coordinates, when the message was posted.
MSG Structure--------------------------------------------------------------------------------The MSG structure contains message information from a thread's message queue. Syntaxtypedef struct {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG, *PMSG;
Membershwnd
Handle to the window whose window procedure receives the message.
message
Specifies the message identifier. Applications can only use the low word; the high word is reserved by the system.
wParam
Specifies additional information about the message. The exact meaning depends on the value of the message member.
lParam
Specifies additional information about the message. The exact meaning depends on the value of the message member.
time
Specifies the time at which the message was posted.
pt
Specifies the cursor position, in screen coordinates, when the message was posted.
http://blog.csdn.net/cker/archive/2001/06/16/4217.aspx
http://blog.csdn.net/cker/archive/2001/06/25/4218.aspx 这是以前的一位csdn C++Builder大虾的独门资料~
希望对你有帮助~Good luck~
begin
inherited Create(AOwner);
FObjectInstance := Classes.MakeObjectInstance(MainWndProc);
procedure TWinControl.MainWndProc(var Message: TMessage);
begin
try
try
WindowProc(Message);
看到这,猜也猜个差不多了应该
而消息主要在WINPROC編寫消息的處理,這是基本的WINDOWS消息機制.
而procedure TWinControl.MainWndProc(var Message: TMessage);
這正是把消息封到WINPROC中來.