Delphi元件的handle的建立

控制项的 window handle 是在 CreateWnd 方法中建立的。
 
如果你想要在建立 window handle 後接着做某些动作那麽你应该改写 CreateWnd 方法:
procedure TMyClass.CreateWnd;
begin
// 现在还没取得 window handle
inherited CreateWnd;
// 呼叫 inherited 以取得 window handle
// 在这里撰写你想要执行的动作
end

 

posted on 2021-08-08 13:44  癫狂编程  阅读(143)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的