P
phynex
Unregistered / Unconfirmed
GUEST, unregistred user!
前些天做个运行期界面设计程序,虽然大致达到要求,但总觉得不爽,个人认为IDE中是完全采用IDesignerHook来实现的,证明如下:
procedure TControl.WndProc(var Message: TMessage);
begin
if (csDesigning in ComponentState) then
begin
Form := GetParentForm(Self);
if (Form <> nil) and (Form.Designer <> nil) and
Form.Designer.IsDesignMsg(Self, Message) then Exit
end;
//......
end;
哪位大虾有过深入研究,给个方向。
procedure TControl.WndProc(var Message: TMessage);
begin
if (csDesigning in ComponentState) then
begin
Form := GetParentForm(Self);
if (Form <> nil) and (Form.Designer <> nil) and
Form.Designer.IsDesignMsg(Self, Message) then Exit
end;
//......
end;
哪位大虾有过深入研究,给个方向。