本文整理自网络,侵删。
获得控件所在的窗体
需要引用单元:Vcl.Forms
function GetParentForm(Control: TControl; TopForm: Boolean = True): TCustomForm;
示例:
GetParentForm(Edit1);
相关阅读 >>
winapi 字符及字符串函数(12): lstrlen - 串长度
更多相关阅读请进入《Delphi》频道 >>
本文整理自网络,侵删。
获得控件所在的窗体
需要引用单元:Vcl.Forms
function GetParentForm(Control: TControl; TopForm: Boolean = True): TCustomForm;
示例:
GetParentForm(Edit1);
相关阅读 >>
winapi 字符及字符串函数(12): lstrlen - 串长度
更多相关阅读请进入《Delphi》频道 >>
管理员已关闭评论功能...