天天看點

發現了一個delphi的form的bug

考,delphi窗體句柄會變,我寫注冊熱鍵程式的時候發現的。試試這樣的代碼,放到checkbox中看看。

showmessage(inttostr(handle));

if chk2.checked then

self.FormStyle := fsStayOnTop

else

self.formstyle := fsNormal;

formstyle := fsstayontop ,這句的實作真是沒想到,早知道直接用api指定算了...

本文轉自suifei部落格園部落格,原文連結:http://www.cnblogs.com/Chinasf/archive/2005/12/27/305431.html,如需轉載請自行聯系原作者

繼續閱讀