A
awfigsk
Unregistered / Unconfirmed
GUEST, unregistred user!
我在程序的buttonclick中设置了断点,并调出call stack窗口,再运行程序,点击button1后,在call stack窗口中只有三条信息
TForm1.Button1Click(...)
TForm1.WndProc(???)
TButtonControl.WndProc(..)
Project1
而并不像书所讲有那么多处理过程显示出来,我在网上看到一篇文章,也讲了call stack会显示出很多处理过程。如下:
[blue]看看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[/blue]
我按上面这样做了,也没有显示这么多消息呀,只有开始我写的那几行。
是不是还要设置什么?谢谢!
TForm1.Button1Click(...)
TForm1.WndProc(???)
TButtonControl.WndProc(..)
Project1
而并不像书所讲有那么多处理过程显示出来,我在网上看到一篇文章,也讲了call stack会显示出很多处理过程。如下:
[blue]看看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[/blue]
我按上面这样做了,也没有显示这么多消息呀,只有开始我写的那几行。
是不是还要设置什么?谢谢!