B
book523
Unregistered / Unconfirmed
GUEST, unregistred user!
看看call Stack就知道了。
新建一个button,写句代码:
showmessage('fdas');
设个断点,运行
View-debug-call Stack
如下内容:
TForm1.Button1Click($CE3798)
TControl.Click
TButton.Click
TButton.CNCommand((48401, 970, 0, 263114, 0))
TControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TButtonControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TControl.Perform(48401,970,263114)
DoControlMsg(263114,(no value))
TWinControl.WMCommand((273, 970, 0, 263114, 0))
TCustomForm.WMCommand((273, 970, 0, 263114, 0))
TControl.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TCustomForm.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.MainWndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
StdWndProc(263108,273,970,263114)
TWinControl.DefaultHandler((no value))
TControl.WMLButtonUp((514, 0, 45, 8, (45, 8), 0))
TControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TWinControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TButtonControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TWinControl.MainWndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
StdWndProc(263114,514,0,524333)
TApplication.HandleMessage
TApplication.Run
看看经过了好多次处理,最后才到达TForm1.Button1Click($CE3798)啊。
新建一个button,写句代码:
showmessage('fdas');
设个断点,运行
View-debug-call Stack
如下内容:
TForm1.Button1Click($CE3798)
TControl.Click
TButton.Click
TButton.CNCommand((48401, 970, 0, 263114, 0))
TControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TButtonControl.WndProc((48401, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TControl.Perform(48401,970,263114)
DoControlMsg(263114,(no value))
TWinControl.WMCommand((273, 970, 0, 263114, 0))
TCustomForm.WMCommand((273, 970, 0, 263114, 0))
TControl.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TCustomForm.WndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
TWinControl.MainWndProc((273, 970, 263114, 0, 970, 0, 970, 4, 0, 0))
StdWndProc(263108,273,970,263114)
TWinControl.DefaultHandler((no value))
TControl.WMLButtonUp((514, 0, 45, 8, (45, 8), 0))
TControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TWinControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TButtonControl.WndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
TWinControl.MainWndProc((514, 0, 524333, 0, 0, 0, 45, 8, 0, 0))
StdWndProc(263114,514,0,524333)
TApplication.HandleMessage
TApplication.Run
看看经过了好多次处理,最后才到达TForm1.Button1Click($CE3798)啊。