dllee
站務副站長
發表:321 回覆:2519 積分:1711 註冊:2002-04-15
發送簡訊給我
|
今天再次上網找 COM port 元件... 雖然抓了很多... 不過還沒試出來...
但是卻有意外驚喜,與大家分享一下。
資料來源:
http://www.mestdagh.biz/
http://users.pandora.be/sonal.nv/components.html
Hints |
Cleanup when closing |
When an appliation is closed there is often need for some cleanup or savings of some work.
Some events are fired when the application terminate, but it is depending on how the application is closed
and often different in main form than in other forms.
These are the called events:
When closing the main form, the following main form events are called:
- OnCloseQuery
- OnClose
- OnDestroy
For the other forms:
When windows shutdown, all forms:
When a WM_QUIT message is received, or calling Application.Terminate, all forms:
This means you have to build some simple logic if you have to do savings / cleanup at the end of the application's lifetime.
It can be the same in all forms:
- In OnCloseQuery: Set a boolean and call the cleanup code
- In OnDestroy: Check the boolean, and if not set then call the cleanup code
|
|
沒空更新的網頁...
http://coolsite.to/dllee C及指標教學,計算機概論,資訊管理導論...
http://coolsite.to/ushells 介紹Shells,LiteStep,GeoShell....
------ http://www.ViewMove.com
|